コード例 #1
0
        public PartialViewResult EditAppointmentRecord(long appointmentRecordId)
        {
            AppointmentRecordVM appointment = MapperUtilVM.MapToAppointmentRecordVM(appointmentService.GetAppointmentRecord(appointmentRecordId));

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