26 lines
711 B
C#
26 lines
711 B
C#
namespace WebApi.Controllers.Dto;
|
|
|
|
public class CreateBudgetDto
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public BudgetPeriodType Type { get; set; } = BudgetPeriodType.Month;
|
|
public decimal Limit { get; set; }
|
|
public BudgetCategory Category { get; set; }
|
|
public string[] SelectedCategories { get; set; } = [];
|
|
public DateTime? StartDate { get; set; }
|
|
public bool NoLimit { get; set; } = false;
|
|
public bool IsMandatoryExpense { get; set; } = false;
|
|
}
|
|
|
|
public class UpdateBudgetDto : CreateBudgetDto
|
|
{
|
|
public long Id { get; set; }
|
|
}
|
|
|
|
public class UpdateArchiveSummaryDto
|
|
{
|
|
public DateTime ReferenceDate { get; set; }
|
|
public string? Summary { get; set; }
|
|
}
|
|
|