Exemple #1
0
 public async Task <IActionResult> PostCompraList(IEnumerable <Compra> compraList)
 {
     try
     {
         return(Ok(await service.PostCompraList(compraList)));
     }
     catch (Exception e)
     {
         var err = e.Message;
         return(BadRequest(new { msg = err }));
     }
 }