public async Task <IActionResult> AddValueEntry(CharacterValueEntryType entryType, int id, int valueVal) { var userId = this.User.FindFirstValue(ClaimTypes.NameIdentifier); await _entryService.AddReplaceCharacterValueEntryAsync(entryType, userId, id, valueVal); return(RedirectToAction("Index", new { id = id })); }
public async Task <IActionResult> AddValueEntry(AddRemoveValueEntry vm) { var userId = GetUserId(); await _entryService.AddReplaceCharacterValueEntryAsync(vm.ValueEntryType, GetUserId(), vm.CharacterId, vm.Value); var sections = await _characterService.GetSectionsAsync(vm.CharacterId, userId); return(new JsonResult(sections)); }