Ejemplo n.º 1
0
        public PartialViewResult EditAppointmentRecord(long appointmentRecordId)
        {
            AppointmentRecordVM appointment = MapperUtilVM.MapToAppointmentRecordVM(appointmentService.GetAppointmentRecord(appointmentRecordId));

            return(PartialView("_EditAppointmentRecord", appointment));
        }
Ejemplo n.º 2
0
 public JsonResult CreateAppRecord(AppointmentRecordVM appointmentRecordVM)
 {
     appointmentService.AddAppointmentRecord(MapperUtilVM.MapToAppointmentRecordDTO(appointmentRecordVM));
     return(Json(appointmentRecordVM, JsonRequestBehavior.AllowGet));
 }
Ejemplo n.º 3
0
 public static AppointmentRecordDTO MapToAppointmentRecordDTO(AppointmentRecordVM appointmentRecordVM)
 {
     return(new MapperConfiguration(cfg => cfg.CreateMap <AppointmentRecordVM, AppointmentRecordDTO>()).CreateMapper()
            .Map <AppointmentRecordVM, AppointmentRecordDTO>(appointmentRecordVM));
 }