Exemple #1
0
 public IHttpActionResult Delete(int id)
 {
     try
     {
         EmpleadoBLL.Delete(id);
         return(Ok("Empleado eliminado correctamente"));
     }
     catch (Exception ex)
     {
         return(Content(HttpStatusCode.BadRequest, ex));
     }
 }
Exemple #2
0
        public bool Delete(int ID)
        {
            EmpleadoBLL EmpleadoBLL = new EmpleadoBLL();

            return(EmpleadoBLL.Delete(ID));
        }
 public ActionResult DeleteConfirmed(int id)
 {
     EmpleadoBLL.Delete(id);
     return(RedirectToAction("Index"));
 }