public JsonResult QuestionsByCategoryId(int id) { return(new JsonResult(_repository.AllQuestionsByCategory(id))); }