Example #1
0
 /// <summary>
 /// 保存机构表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="organizeEntity">机构实体</param>
 /// <returns></returns>
 public void AddAdmin(string keyValue)
 {
     try
     {
         service.AddAdmin(keyValue);
         CacheFactory.Cache().RemoveCache(cacheKey);
         CacheFactory.Cache().RemoveCache("DepartmentCache");
         CacheFactory.Cache().RemoveCache("RoleCache");
         CacheFactory.Cache().RemoveCache("userCache");
     }
     catch (Exception)
     {
         throw;
     }
 }