public ActionResult Add(ShadowAuthModel model)
        {
            JsonResultModel result = new JsonResultModel();
            if (!(result.IsSuccess = ModelState.IsValid))
            {
                result.Message = ModelState.ToErrorString();
                return Json(result);
            }

            AuthManager.AddAuth(model.ToAuthAction(), model.AuthRole);
            result.Message = "成功!";
            return Json(result);
        }
 public ActionResult Edit(ShadowAuthModel model, int Id)
 {
     var auth = model.ToAuthAction();
     auth.AuthorizeId = Id;
     AuthManager.UpdateAuth(auth, model.AuthRole);
     return RedirectToAction("Index");
 }