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