Example #1
0
        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));
        }
Example #2
0
        public ActionResult Edit(long threadid, long postid)
        {
            CreatorThreadModel creatorThread = new CreatorThreadModel
            {
                Thread = ThreadDAO.Select(threadid),
                Post   = PostDAO.Select(postid)
            };

            return(View(creatorThread));
        }