Exemplo n.º 1
0
        public IActionResult Create()
        {
            CreateAdvertViewModel viewModel = new CreateAdvertViewModel()
            {
                OwnedCharactersList = _charactersService.GetUserCharacters(_userManager.GetUserAsync(User).Result.Id)
            };

            return(View(viewModel));
        }
Exemplo n.º 2
0
        public IActionResult MyCharacterList()
        {
            MyCharactersViewModel viewModel = new MyCharactersViewModel()
            {
                MyCharactersList = characterService.GetUserCharacters(
                    _userManager.GetUserAsync(HttpContext.User).Result.Id
                    )
            };

            return(View(viewModel));
        }