public ActionResult Edit(long thread, long post) { CreatorThreadModel creatorThread = new CreatorThreadModel { Thread = db.Threads.Where(e => e.Id == thread).Single(), Post = db.Posts.Where(e => e.Id == post).Single() }; return(View(creatorThread)); }
public ActionResult Edit(long threadid, long postid) { CreatorThreadModel creatorThread = new CreatorThreadModel { Thread = ThreadDAO.Select(threadid), Post = PostDAO.Select(postid) }; return(View(creatorThread)); }