internal IEnumerable <Question> GetQuestionsByCatagoryId(int id) { IEnumerable <Question> data = _repo.GetQuestionsByCatagoryId(id); if (data == null) { throw new Exception("Invalid Id"); } return(data); }
internal IEnumerable <Question> GetQuestionsByCatagoryId(int id) { IEnumerable <Question> data = _repo.GetQuestionsByCatagoryId(id); if (data == null) { throw new Exception("Invalid Id"); } return(data); }