コード例 #1
0
 public IActionResult Index()
 {
     try
     {
         return(StatusCode(200, api.GetAllPrices()));
     }
     catch (Exception e)
     {
         return(StatusCode(400, e.Message));
     }
 }
コード例 #2
0
 public IActionResult Index()
 {
     return(View(api.GetAllPrices()));
 }