public async Task <IActionResult> PostTag(string label, string itemName) { await _itemRepository.AddTag(label, itemName); return(RedirectToAction(nameof(Index))); }
public void AddTag(int id, string newTag) { repo.AddTag(id, newTag); }