public List <Disciplines> GetAll() { var DisciplinesList = new List <Disciplines>(); try { var ObjDAL = new DisciplinesOperations(); DisciplinesList = ObjDAL.GetDisciplines(); if (DisciplinesList == null || DisciplinesList.Count == 0) { throw new ELibException("Disciplines not found"); } } catch (ELibException ex) { throw ex; } catch (Exception ex) { throw new ELibException("Unknown error", ex); } return(DisciplinesList); }
public DisciplinesBLL() { DisciplinesDALObj = new DisciplinesOperations(); }