private void UsersInit() { Users = new ObservableCollection <UserModel>(); foreach (var applicationUser in _userApi.ApiAccountAllGet()) { if (applicationUser.UserName != LoginViewModel.CurrentPrincipal.Identity.Name) { Users.Add(new UserModel() { Id = applicationUser.Id, Email = applicationUser.Email, Login = applicationUser.UserName, Roles = new ObservableCollection <string>(_userApi.ApiAccountGetRolesGet(applicationUser.Id)) }); } } }