Files
2025-01-04 21:45:20 +03:30

23 lines
623 B
C#

using System;
using System.Globalization;
namespace CompanyManagment.App.Contracts.CustomizeCheckout;
public class CreateCustomizeCheckout
{
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 EmployeeId { get; set; }
public long WorkshopId { get; set; }
}