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