public Question GetQuestionById(string id) { var question = _repo.GetQuestionsById(id); if (question == null) { throw new Exception("Not a valid ID. Try again."); } return(question); }
public Question GetQuestionById(string id) { var question = _repo.GetQuestionsById(id); if (question == null) { throw new Exception("Not a valid ID. Try again."); } return(question); }