public void EditTag(Tag tag) { _blogContext.Update(tag); _blogContext.Commit(); }
public int AddTag(Tag tag) { _blogContext.Add(tag); _blogContext.Commit(); return tag.Id; }
public static string TagLink(this UrlHelper helper, Tag tag) { return helper.Action("Tag", "Blog", new { urlSlug = tag.UrlSlug }); }