Пример #1
0
        public async Task <IActionResult> Settings(AccountSettingsVM model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            await accountRepository.UpdateUser(model.CreateForm);

            return(View());
        }
Пример #2
0
 public AccountSettings()
 {
     this.InitializeComponent();
     _navigationHandler = NavigationHandler.Instance;
     vm                    = DataContext as AccountSettingsVM;
     _imagePicker          = new FileOpenPicker();
     _imagePicker.ViewMode = PickerViewMode.Thumbnail;
     _imagePicker.SuggestedStartLocation = PickerLocationId.Desktop;
     _imagePicker.FileTypeFilter.Add(".jpg");
     _imagePicker.FileTypeFilter.Add(".jpeg");
     _imagePicker.FileTypeFilter.Add(".png");
     _imagePicker.FileTypeFilter.Add(".gif");
     _gameList = GameList.Instance;
 }