- Added `DailyWage`, `AvgWorkingHour`, and `FamilyAllowance` properties to `GetContractListForClientResponse`. - Refactored `WorkingHoursWeekly` conversion logic by introducing a reusable `WeeklyHourConvertor` method in `ContractRepository`. - Updated query result mapping to include new properties and utilize `WeeklyHourConvertor` for `AvgWorkingHour`. - Improved code readability and maintainability by centralizing repetitive logic.
15 lines
538 B
C#
15 lines
538 B
C#
namespace CompanyManagment.App.Contracts.Contract;
|
|
|
|
public class GetContractListForClientResponse
|
|
{
|
|
public long Id { get; set; }
|
|
public string PersonnelCode { get; set; }
|
|
public string ContractNo { get; set; }
|
|
public string EmployeeFullName { get; set; }
|
|
public string ContractStart { get; set; }
|
|
public string ContractEnd { get; set; }
|
|
public bool IsSigned { get; set; }
|
|
public string DailyWage { get; set; }
|
|
public string AvgWorkingHour { get; set; }
|
|
public string FamilyAllowance { get; set; }
|
|
} |