コード例 #1
0
        public async Task <IActionResult> List()
        {
            var grade = await gradeRepository.getAll();

            if (grade == null || !grade.Any())
            {
                return(NotFound(new { message = "Du lieu khong ton tai" }));
            }
            return(Ok(new { status = ResultStatus.STATUS_OK, data = grade }));
        }