/// <summary> /// 获得菜单信息 /// </summary> /// <param name="keyValue"></param> /// <returns></returns> public ModuleEntity GetForm(string keyValue) { ResultClass <ModuleEntity> _ret = service.FindEntity(keyValue); if (_ret.Result) { return(_ret.ResultData); } return(new ModuleEntity()); }
public ModuleEntity GetForm(string keyValue) { cacheKey = cacheKey + "2_" + keyValue;//拼接有参key值 var cacheEntity = cache.GetCache <ModuleEntity>(cacheKey); if (cacheEntity == null) { cacheEntity = service.FindEntity(keyValue); cache.WriteCache <ModuleEntity>(cacheEntity, cacheKey, "UserCacheDependency", "Sys_Module"); } return(cacheEntity); }
public ModuleEntity GetForm(string keyValue) { return(service.FindEntity(keyValue)); }
public ModuleEntity FindEntity(string keyValue) { return(moduleRepository.FindEntity(keyValue)); }
public Sys_Module GetForm(string keyValue) { return(service.FindEntity <Sys_Module>(keyValue)); }