public ActionResult Edit(int id)
{
PostModel post = _posty.PobierzPost(id);
TagModel tagi = _tagi.PobierzTagPosta(post.Id);
if(post == null)
return RedirectToAction("Index", "Home");//no such post
if(tagi == null)
return RedirectToAction("Index", "Home");//no such tag
ViewData["post"] = post;
return View();
}