Ejemplo n.º 1
0
 public async Task <OperationResult> Update([FromBody] AppointmentModel updateModel)
 {
     return(await _appointmentsService.Update(updateModel));
 }
 private void UpdateAppointment(AppointmentViewModel appointment)
 {
     _appointmentService.Update(_mapper.Map <AppointmentDTO>(appointment));
 }
Ejemplo n.º 3
0
        public void GivenEditedAppointmentWhenEditingThenUpdatesWithRepository()
        {
            _service.Update(new AppointmentDTO());

            _repository.Verify(x => x.Update(It.IsAny <Appointment>()), Times.Once());
        }
 public ActionResult <Model.Appointments> UpdateAppointment(int appointmentId, Model.Requests.InsertAppointmentRequest ap)
 {
     return(_service.Update(appointmentId, ap));
 }