BgEngine.Controllers.PostController.Edit C# (CSharp) Method

Edit() private method

private Edit ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public ActionResult Edit(int id)
        {
            Post post = PostServices.FindAllEntities(p => p.PostId == id, null, "Tags").FirstOrDefault();
            ViewBag.ImageId = new SelectList(ImageServices.FindAllEntities(null, null, null), "ImageId", "FileName", post.ImageId);
            ViewBag.CategoryId = new SelectList(CategoryServices.FindAllEntities(null, null, null), "CategoryId", "Name", post.CategoryId);
            ViewBag.UserId = new SelectList(UserServices.FindAllEntities(null, null, null), "UserId", "Username", post.UserId);
            ViewBag.Tags = TagServices.FindAllEntities(null, o => o.OrderBy(t => t.TagName), null).ToDictionary<Tag, int, string>(t => t.TagId, t => t.TagName);
            return View(post);
        }

Same methods

PostController::Edit ( Post post, int selectedtags ) : System.Web.Mvc.ActionResult