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