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