public async Task <IActionResult> AddTagEntry(CharacterTagEntryType entryType, int id, string tagName) { var userId = this.User.FindFirstValue(ClaimTypes.NameIdentifier); await _entryService.AddReplaceCharacterTagEntryAsync(entryType, userId, id, tagName); return(RedirectToAction("Index", new { id = id })); }
public async Task <IActionResult> AddTagEntry(AddTagEntry vm) { var userId = GetUserId(); await _entryService.AddReplaceCharacterTagEntryAsync(vm.TagEntryType, GetUserId(), vm.CharacterId, vm.TagName); var sections = await _characterService.GetSectionsAsync(vm.CharacterId, userId); return(new JsonResult(sections)); }