Exemple #1
0
 public async Task <JsonResult> Post(ServiceLocationAppointmentViewModel entity)
 {
     return(Json(await _service.AddAppointment(entity)));
 }
 public async Task <bool> AddAppointment(ServiceLocationAppointmentViewModel appointment)
 {
     return(await _appointmentRepository.Insert(_mapper
                                                .Map <ServiceLocationAppointmentViewModel, ServiceLocationAppointment>(appointment)));
 }