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); }