public static Result inactivar(int id, int usuarioId) { Result r = ValidateSession.validarSession(usuarioId, HttpContext.Current.Session["usuarioId"]); if (r.error != "") { return(r); } try { FormulariosController fc = new FormulariosController(); return(fc.inactivarFormularios(id, usuarioId)); } catch (Exception ex) { return(new Result() { error = ex.Message, id = 0, tipoAlerta = "warning" }); } }