예제 #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()));
 }