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))); }
public void GetAllFaculties() { var getallFaculty = _facutlyBL.GetAllFaculties(0, 10, 1, 14); Assert.IsTrue(_facutlyBL != null, "Unable to get"); }