public void UpdateSprint(string sprintId, ServiceModel.Sprint sprint) { var dataSprint = repository.GetByID(sprintId); dataSprint.Title = sprint.Title; repository.Save(); }
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()); }