public async Task Edit(EditAppointmentDto appointmentDto) { var appointment = _demoContext.Appointments.Find(appointmentDto.Id); appointment.Name = appointmentDto.Name; await _demoContext.SaveChangesAsync(); }
public async Task Edit(EditAppointmentDto editAppointmentDto) { await _appointmentService.Edit(editAppointmentDto); }