public IActionResult Create() { CreateAdvertViewModel viewModel = new CreateAdvertViewModel() { OwnedCharactersList = _charactersService.GetUserCharacters(_userManager.GetUserAsync(User).Result.Id) }; return(View(viewModel)); }
public IActionResult MyCharacterList() { MyCharactersViewModel viewModel = new MyCharactersViewModel() { MyCharactersList = characterService.GetUserCharacters( _userManager.GetUserAsync(HttpContext.User).Result.Id ) }; return(View(viewModel)); }