public ActionResult Index() { var tags = _tagService.GetTags(); var model = new TagsIndexViewModel { Tags = tags.ToList() }; return View(model); }
public ActionResult Index() { try { var tags = _tagService.GetTags(); var model = new TagsIndexViewModel { Tags = tags.ToList() }; return View(model); } catch (Exception exception) { _notifier.Error(T("Listing tags failed: " + exception.Message)); return Index(); } }