23 lines
623 B
C#
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; }
|
|
}
|