public ActionResult Delete(int id, Tag tag) { try { _postTagRepository.DeleteAssociatedPostTags(tag.Id); _tagRepository.DeleteTag(id); return(RedirectToAction("Index")); } catch { return(View(tag)); } }