예제 #1
0
        public JsonResult Eliminar(int id)
        {
            ResponseModel rm = new ResponseModel();

            rm = habilidad.Eliminar(id);
            //if (rm.response) rm.href = "self";

            return(Json(rm, JsonRequestBehavior.AllowGet));
        }
        public JsonResult Eliminar(int id)
        {
            var rm = new ResponseModel();

            try
            {
                if (ModelState.IsValid)
                {
                    rm = habilidad.Eliminar(id);
                    if (rm.response)
                    {
                        rm.href = "/admin/habilidades/";
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(Json(rm));
        }
 public JsonResult Eliminar(int id)
 {
     return(Json(habilidad.Eliminar(id)));
 }
예제 #4
0
 public JsonResult Eliminar(int id)
 {
     Redirect("~/admin/habilidades/index");
     return(Json(habilidades.Eliminar(id), JsonRequestBehavior.AllowGet));
 }
예제 #5
0
 public JsonResult Eliminar(int id) => Json(habilidad.Eliminar(id));