Пример #1
0
        public async Task <IActionResult> SetActive(int id)
        {
            var character = await _context.Characters.FirstOrDefaultAsync(m => m.Id == id);

            if (character == null)
            {
                return(NotFound());
            }

            await _characterManager.SetAsActive(character, character.OwnerId);

            return(RedirectToAction(nameof(Index)));
        }