コード例 #1
0
        public async Task <ActionResult <int> > GetLastQuestionAdded()
        {
            var lastQuestion = await QuestionRepo.GetLastQuestionAdded();

            if (lastQuestion != 0)
            {
                return(Ok(lastQuestion));
            }
            return(NotFound());
        }