Exemplo n.º 1
0
 private void OnWebpagesRolesListAdd(WebpagesRoles entity)
 {
     SendPropertyChanging(null);
     WebpagesUsersInRolesList.Add(new WebpagesUsersInRoles {
         UserProfile = this, WebpagesRoles = entity
     });
     SendPropertyChanged(null);
 }
Exemplo n.º 2
0
        private void OnWebpagesRolesListRemove(WebpagesRoles entity)
        {
            SendPropertyChanging(null);
            var webpagesUsersInRoles = WebpagesUsersInRolesList.FirstOrDefault(c => c.UserId == UserId &&
                                                                               c.RoleId == entity.RoleId);

            WebpagesUsersInRolesList.Remove(webpagesUsersInRoles);
            SendPropertyChanged(null);
        }
 partial void OnWebpagesRolesChanging(WebpagesRoles value);