public async Task<AppointmentEvent> UpdateAsync(AppointmentEvent appointmentEvent) { var newAppointment = _appointmentEventRepository.Update(appointmentEvent); await _unitOfWork.SaveChangesAsync(); return newAppointment; }
public async Task<AppointmentEvent> CreateAsync(AppointmentEvent appointmentEvent) { _appointmentEventRepository.Insert(appointmentEvent); await _unitOfWork.SaveChangesAsync(); return appointmentEvent; }