public DoctorCalendarDTO ConvertTODTO(DoctorCalendar obj) { var doctorCalendarDTO = new DoctorCalendarDTO() { DoctorCalendarID = obj.DoctorCalendarID, DoctorID = obj.DoctorID, Date = obj.Date, StartTime = obj.StartTime, EndTime = obj.EndTime }; return(doctorCalendarDTO); }
public DoctorCalendar ConvertTOModel(DoctorCalendarDTO obj) { var doctorCalendar = new DoctorCalendar() { DoctorCalendarID = obj.DoctorCalendarID, DoctorID = obj.DoctorID, Date = obj.Date, StartTime = obj.StartTime, EndTime = obj.EndTime }; return(doctorCalendar); }