Пример #1
0
 public IHttpActionResult GetAllFaculties()
 {
     try
     {
         var facultyList = _facultybusiness.GetAllFaculties();
         if (facultyList.Any())
         {
             return(Ok(facultyList));
         }
         return(NotFound());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
 public DTO.Paged.PagedFaculty GetAllPagedFaculty(int skip, int take, int organizationID, int ClientID)
 {
     return(Mapper.Map <DTO.Paged.PagedFaculty>(_faculty.GetAllFaculties(skip, take, organizationID, ClientID)));
 }
Пример #3
0
        public void GetAllFaculties()
        {
            var getallFaculty = _facutlyBL.GetAllFaculties(0, 10, 1, 14);

            Assert.IsTrue(_facutlyBL != null, "Unable to get");
        }