/// <summary> /// 验证某操作功能是否具有权限 /// </summary> /// <param name="ControllerName"></param> /// <param name="ActionName"></param> /// <returns></returns> public bool CheckActionWeight(string ControllerName, string ActionName) { bool result = true; AdminAction adminActionEntity = _adminActionService.GetByCondition(new DirectSpecification <AdminAction>(a => a.ControllerName == ControllerName && a.ActionName == ActionName), true); if (adminActionEntity != null) { result = CheckAction(adminActionEntity); } return(result); }
public ActionResult EditAction(int id) { AdminAction aat = _adminActionService.GetByCondition(new DirectSpecification <AdminAction>(aa => aa.AAID == id)); return(View(aat)); }