示例#1
0
        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);
        }
示例#2
0
 public DisciplinesBLL()
 {
     DisciplinesDALObj = new DisciplinesOperations();
 }