private void RemoveTag() { Post post = _postRepository.Get(_postId); Console.WriteLine($"Which tag would you like to remove from {post.Title}?"); List <Tag> tags = post.Tags; for (int i = 0; i < tags.Count; i++) { Tag tag = tags[i]; Console.WriteLine($" {i + 1}) {tag.Name}"); } Console.Write("> "); string input = Console.ReadLine(); try { int choice = int.Parse(input); Tag tag = tags[choice - 1]; _postRepository.DeleteTag(post.Id, tag.Id); } catch (Exception ex) { Console.WriteLine("Invalid Selection. Won't remove any tags."); } }