public async Task <OperationResult> Update([FromBody] AppointmentModel updateModel) { return(await _appointmentsService.Update(updateModel)); }
private void UpdateAppointment(AppointmentViewModel appointment) { _appointmentService.Update(_mapper.Map <AppointmentDTO>(appointment)); }
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)); }