public IHttpActionResult Delete(int id)
 {
     try
     {
         CabezaFacturaBLL.Delete(id);
         return(Ok("Facturaa eliminada correctamente"));
     }
     catch (Exception ex)
     {
         return(Content(HttpStatusCode.BadRequest, ex));
     }
 }
Beispiel #2
0
 public ActionResult DeleteConfirmed(int id)
 {
     CabezaFacturaBLL.Delete(id);
     return(RedirectToAction("Index"));
 }