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