public void AddNewList(string userName, string newListName) { int userListId = userLists.Max(x => x.UserListId) + 1; UserList userList = new UserList { Owner = userName, Title = newListName, UserListId = userListId }; userLists.Add(userList); }
partial void _onUserListChanging(UserList value);