public IHttpActionResult Delete(int id) { try { EmpleadoBLL.Delete(id); return(Ok("Empleado eliminado correctamente")); } catch (Exception ex) { return(Content(HttpStatusCode.BadRequest, ex)); } }
public bool Delete(int ID) { EmpleadoBLL EmpleadoBLL = new EmpleadoBLL(); return(EmpleadoBLL.Delete(ID)); }
public ActionResult DeleteConfirmed(int id) { EmpleadoBLL.Delete(id); return(RedirectToAction("Index")); }