45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
// using System;
|
|
// using System.Collections.Generic;
|
|
// using System.Linq;
|
|
// using System.Threading.Tasks;
|
|
// using Contracts.DTOs.HR;
|
|
|
|
// namespace Auth.Domain.Entities.HR;
|
|
|
|
// public class Salary
|
|
// {
|
|
// public Guid Id { get; set; }
|
|
|
|
// public double Amount { get; set; }
|
|
|
|
// public DateTime StartDate { get; set; }
|
|
|
|
// public DateTime? EndDate { get; set; }
|
|
|
|
// public string EmployeeName { get; set; }
|
|
// public string EmployeeId { get; set; }
|
|
// public AppUser Employee { get; set; }
|
|
|
|
// public static SalaryVM ToVM(Salary salary)
|
|
// {
|
|
// return new SalaryVM()
|
|
// {
|
|
// Amount = salary.Amount,
|
|
// EmployeeId = salary.EmployeeId,
|
|
// StartDate = salary.StartDate,
|
|
// EndDate = salary.EndDate,
|
|
// };
|
|
// }
|
|
|
|
// public static Salary ToEntity(SalaryVM salaryVM)
|
|
// {
|
|
// return new Salary()
|
|
// {
|
|
// Amount = salaryVM.Amount,
|
|
// EmployeeId = salaryVM.EmployeeId,
|
|
// StartDate = salaryVM.StartDate,
|
|
// EndDate = salaryVM.EndDate,
|
|
// };
|
|
// }
|
|
// }
|