Files
myoffice/MyOffice.Services/Dashboard/Domain/DashboardData.cs
T
2023-07-21 23:01:56 +03:00

25 lines
744 B
C#

namespace MyOffice.Services.Dashboard.Domain;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Data.Models.Accounts;
public class DashboardData
{
public decimal IncomeLast { get; set; }
public decimal IncomePrevious { get; set; }
public decimal OutcomeLast { get; set; }
public decimal OutcomePrevious { get; set; }
public decimal? Balance { get; set; }
public decimal? BalanceDebit { get; set; }
public decimal? BalanceCredit { get; set; }
}
public class DashboardRestData
{
public AccountSimple AccountSimple { get; set; }
public decimal? Balance => AccountSimple.Balance;
public decimal? BalanceAtRate =>
AccountSimple.Balance * (AccountSimple.CurrencyRate * AccountSimple.CurrencyQuantity);
}