public async Task <Result <Guid> > Add(CreateAppointmentExceptionModel model) { var id = Guid.NewGuid(); _repository.Add(new AppointmentException { Id = id, FromDate = model.FromDate, ToDate = model.ToDate }); await _repository.CommitAsync(); return(Result <Guid> .Successful(id)); }
public Task <Result <Guid> > Add(CreateAppointmentExceptionModel model) => _appointmentExceptionBiz.Add(model);