Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 public void UpsertUserRoleMenu(UserRoleSettingModel model)
 {
     Db((db, tran) =>
     {
         db.DeleteList <UserRoleMenu>(new { model.UserRoleId }, tran);
         model.UserMenuIds?.ForEach(id =>
         {
             db.Insert <Guid, UserRoleMenu>(new UserRoleMenu()
             {
                 UserRoleMenuId = SeqGuid.NewGuid(),
                 UserRoleId     = model.UserRoleId,
                 UserMenuId     = id
             }, tran);
         });
     });
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 public void UpsertUserRoleMenu(UserRoleSettingModel model)
 {
     Da.UpsertUserRoleMenu(model);
 }