Exemple #1
0
        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);
 }