Ejemplo n.º 1
0
        public ActionResult Create(CreateNewProject cmd)
        {
            var service = new ScrumrCommandServiceClient();
            service.ExecuteCommand(cmd);

            return RedirectToAction("Details", new {cmd.ProjectId});
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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 }));
        }
Ejemplo n.º 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});
        }