コード例 #1
0
 public async Task <IActionResult> Get()
 {
     try
     {
         var result = _service.Get();
         return(Response(result));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError(string.Empty, ex.Message);
         return(Response());
     }
 }