Blog.Controllers.PostController.Edit C# (CSharp) Метод

Edit() приватный Метод

private Edit ( int id ) : System.Web.Mvc.ActionResult
id int
Результат System.Web.Mvc.ActionResult
        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();
        }

Same methods

PostController::Edit ( int id, System.Web.Mvc.FormCollection collection ) : System.Web.Mvc.ActionResult