Beispiel #1
0
 public void SubmitForm(RoleAuthorizeEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         service.Insert(entity);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 保存权限记录
 /// </summary>
 /// <param name="moduleEntity"></param>
 /// <param name="keyValue"></param>
 public void SubmitForm(RoleAuthorizeEntity roleAuthorizeEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         roleAuthorizeEntity.F_Id = keyValue;
         service.Update(roleAuthorizeEntity);
     }
     else
     {
         roleAuthorizeEntity.Create();
         service.Insert(roleAuthorizeEntity);
     }
 }