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