Esempio n. 1
0
 public IActionResult Post()
 {
     try
     {
         // IRestauranteService service = new RestaurantServiceImpl();
         var     file = Request.Form.Files[0];
         Archive arq  = new Archive(file, new Dictionary <string, bool> {
             { "hasHeaders", true }
         });
         service.ImportFile(arq);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(StatusCode(400, $"{ex.Message}"));
     }
 }