Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task AddNewDisciplineAsync(Discipline discipline) { if (await disciplineRepository.FindSingleAsync(d => d.Name == discipline.Name) != null) { throw new AlreadyInDatabaseException(); } disciplineRepository.Add(discipline); await unitOfWork.CompleteAsync(); }