コード例 #1
0
        public void UpdateSprint(string sprintId, ServiceModel.Sprint sprint)
        {
            var dataSprint = repository.GetByID(sprintId);

            dataSprint.Title = sprint.Title;
            repository.Save();
        }
コード例 #2
0
        public string CreateSprint(ServiceModel.Sprint sprint, string userId)
        {
            var project    = projectRepository.GetByID(sprint.ProjectId);
            var dataSprint = new Sprint(sprint.Title, project, sprint.StartDate, sprint.EndDate);

            repository.Insert(dataSprint);
            repository.Save();
            return(dataSprint.Id.ToString());
        }