コード例 #1
0
        public ActionResult RestoreTask(int taskId)
        {
            var manager = new TaskManager();

            int userId = int.Parse(User.Identity.GetProjectUserId());
            var projectId = manager.GetProjectForTask(taskId).Id;
            var reason = Request.Form["restoreReason"];

            manager.RestoreTask(taskId, userId, reason);

            TempData["DetailsPage"] = "1";
            return Redirect("/Projects/Details/" + projectId);
        }