예제 #1
0
 public ActionResult <IQueryable <TestWithObjectSubject> > GetListOfSubjectAndTests(int itemsAmount, int pageNumber)
 {
     try
     {
         return(Ok(_testsRepository.GetTestsWithObjectSubject(itemsAmount, pageNumber)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }