public ActionResult Detail(int id) { BlogRep rep = new BlogRep(); var blog = rep.GetById(id); blog.GoruntulenmeSayisi++; ViewBag.tags = blog.Etiket; rep.Update(blog); return(View(blog)); }
public Blog GetBlogById(int id) { BlogRep rep = new BlogRep(); return(rep.GetById(id)); }