コード例 #1
0
        public ActionResult Create(CreateNewProject cmd)
        {
            var service = new ScrumrCommandServiceClient();
            service.ExecuteCommand(cmd);

            return RedirectToAction("Details", new {cmd.ProjectId});
        }
コード例 #2
0
ファイル: ProjectController.cs プロジェクト: stgolem/Scrumr
        public ActionResult AddTaskToStory(Guid projectId, Guid sprintId, Guid stageId, Guid storyId, String description)
        {
            var taskId = Guid.NewGuid();
            var cmd = new AddNewTaskToStory(projectId, sprintId, stageId, storyId, taskId, description);
            var service = new ScrumrCommandServiceClient();
            service.ExecuteCommand(cmd);

            return Json(taskId);
        }
コード例 #3
0
ファイル: ProjectController.cs プロジェクト: stgolem/Scrumr
        public ActionResult AddStory(Guid projectId, Guid sprintId, string description)
        {
            Guid storyId = Guid.NewGuid();
            var cmd = new AddNewStoryToSprint(projectId, sprintId, storyId, description);
            var service = new ScrumrCommandServiceClient();
            service.ExecuteCommand(cmd);

            return Json(storyId);
        }
コード例 #4
0
ファイル: ProjectController.cs プロジェクト: stgolem/Scrumr
        public ActionResult AddStory(Guid projectId, Guid sprintId, string description)
        {
            Guid storyId = Guid.NewGuid();
            var  cmd     = new AddNewStoryToSprint(projectId, sprintId, storyId, description);
            var  service = new ScrumrCommandServiceClient();

            service.ExecuteCommand(cmd);

            return(Json(storyId));
        }
コード例 #5
0
ファイル: ProjectController.cs プロジェクト: stgolem/Scrumr
        public ActionResult AddTaskToStory(Guid projectId, Guid sprintId, Guid stageId, Guid storyId, String description)
        {
            var taskId  = Guid.NewGuid();
            var cmd     = new AddNewTaskToStory(projectId, sprintId, stageId, storyId, taskId, description);
            var service = new ScrumrCommandServiceClient();

            service.ExecuteCommand(cmd);

            return(Json(taskId));
        }
コード例 #6
0
ファイル: ProjectController.cs プロジェクト: stgolem/Scrumr
        public ActionResult Create(CreateNewProject createCommand)
        {
            var service  = new ScrumrCommandServiceClient();
            var sprintId = Guid.NewGuid();

            service.ExecuteCommand(createCommand);
            service.ExecuteCommand(new AddNewSprintToProject(createCommand.ProjectId, sprintId, "Sprint 0", DateTime.UtcNow, DateTime.UtcNow.AddDays(7 * 4)));
            service.ExecuteCommand(new StartSprint(createCommand.ProjectId, sprintId));

            return(RedirectToAction("ScrumBoard", new { createCommand.ProjectId }));
        }
コード例 #7
0
ファイル: ProjectController.cs プロジェクト: stgolem/Scrumr
        public ActionResult Create(CreateNewProject createCommand)
        {
            var service = new ScrumrCommandServiceClient();
            var sprintId = Guid.NewGuid();

            service.ExecuteCommand(createCommand);
            service.ExecuteCommand(new AddNewSprintToProject(createCommand.ProjectId, sprintId, "Sprint 0", DateTime.UtcNow, DateTime.UtcNow.AddDays(7 * 4)));
            service.ExecuteCommand(new StartSprint(createCommand.ProjectId, sprintId));

            return RedirectToAction("ScrumBoard", new {createCommand.ProjectId});
        }