public async Task <ActionResult <int> > GetLastQuestionAdded() { var lastQuestion = await QuestionRepo.GetLastQuestionAdded(); if (lastQuestion != 0) { return(Ok(lastQuestion)); } return(NotFound()); }
public async Task <ActionResult <int> > GetLastQuestionAdded() { var lastQuestion = await QuestionRepo.GetLastQuestionAdded(); if (lastQuestion != 0) { return(Ok(lastQuestion)); } return(NotFound()); }