예제 #1
0
        public void TestGetDepts()
        {
            var depts = _deptManager.GetDeptsBAL();

            Assert.IsAssignableFrom <IQueryable <DepartmentViewModel> >(depts);
            Assert.NotNull(depts);
        }
예제 #2
0
 public IQueryable <DepartmentViewModel> GetDepartments()
 {
     try
     {
         var depts = _deptManager.GetDeptsBAL();
         return(depts);
     }
     catch (Exception)
     {
         throw;
     }
 }