public Task <Discipline> GetDisciplineByID(int?id) { try { return(_disciplineRepository.FindByCondition(dis => dis.DisciplineId == id).FirstOrDefaultAsync()); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
public Task <Discipline> GetDisciplineByID(int?id) { try { return(_disciplineRepository.FindByCondition(dis => dis.DisciplineId == id).FirstOrDefaultAsync()); } catch (Exception ex) { throw new Exception(ex.ToString()); } }