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