コード例 #1
0
        // GET: Exception/Details/5
        public async Task <IActionResult> ExceptionDetails(long id)
        {
            var exceptionModel = await _exceptionService.GetExceptionAsync(id);

            if (exceptionModel == null)
            {
                return(NotFound());
            }

            return(View(exceptionModel));
        }
コード例 #2
0
        public async Task <IActionResult> Index()
        {
            ExceptionModel exceptionAsync = await _exceptionService.GetExceptionAsync(1);

            return(View());
        }