public ActionResult Create(CreateNewProject cmd)
        {
            var service = new ScrumrCommandServiceClient();
            service.ExecuteCommand(cmd);

            return RedirectToAction("Details", new {cmd.ProjectId});
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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));
        }
Beispiel #5
0
        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));
        }
Beispiel #6
0
        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 }));
        }
Beispiel #7
0
        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});
        }