public ActionResult Post(long thread, string context) { var account = AccountDAO.SelectItemByLogin(User.Identity.Name).Id; PostDAO.Insert(new Post { Context = context, Account = account, Created = DateTime.Now, Thread = thread, Status = PostStatusDAO.SelectByName("Idle"), ThreadOrder = PostDAO.SelectLastPostByThread(thread) + 1 }); ThreadDAO.UpdateById(thread, new Thread { Updated = DateTime.Now }); return(RedirectToAction("Thread", new { id = thread })); }