Example #1
0
 public void MapDTOToHospital(HospitalDTO hospitalDTO, Hospital hospital)
 {
     hospital.Id             = (int)hospitalDTO.Id;
     hospital.CreatedAt      = hospitalDTO.CreatedAt;
     hospital.UpdatedAt      = hospital.UpdatedAt;
     hospital.Name           = hospitalDTO.Name;
     hospital.PatientCount   = hospitalDTO.PatientCount;
     hospital.TotalRoomCount = hospitalDTO.TotalRoomCount;
 }
Example #2
0
 public Hospital CreateHospitalFromDTO(HospitalDTO hospitalDTO)
 {
     return(new Hospital()
     {
         CreatedAt = hospitalDTO.CreatedAt,
         UpdatedAt = hospitalDTO.UpdatedAt,
         Name = hospitalDTO.Name,
         PatientCount = hospitalDTO.PatientCount,
         TotalRoomCount = hospitalDTO.TotalRoomCount
     });
 }