using System; using System.Collections.Generic; using System.Globalization; namespace CompanyManagment.App.Contracts.CustomizeCheckout; public class CreateCustomizeCheckoutGroup { public int YearFa { get; set; } public int MonthFa { get; set; } public DateTime ContractStart => new(YearFa, MonthFa, 1, new PersianCalendar()); public DateTime ContractEnd { get { DateTime date = new(MonthFa == 12 ? YearFa + 1 : YearFa, MonthFa == 12 ? 1 : MonthFa + 1, 1, new PersianCalendar()); return date.Date.AddDays(-1).Date; } } public long WorkshopId { get; set; } public List EmployeeIds { get; set; } }