public static EmployeeModelDto ToDto(this EmployeeModel model) { var dto = new EmployeeModelDto { Age = model.Age, Guid = model.Guid, Name = model.Name, CustomerId = model.CustomerId, Position = model.Position }; return(dto); }
public static EmployeeModel ToModel(this EmployeeModelDto dto) { var model = new EmployeeModel { Age = dto.Age, Guid = dto.Guid, Name = dto.Name, CustomerId = dto.CustomerId, Position = dto.Position }; return(model); }