Ejemplo n.º 1
0
 public static ScrumStoryServiceModel mapScrumStoryEntityToModel(ScrumStory scrumStory)
 {
     ScrumStoryServiceModel model = new ScrumStoryServiceModel();
     model.createdDate = scrumStory.CreateDate;
     model.description = scrumStory.Description;
     model.id = scrumStory.Id;
     model.lastUpdatedDate = scrumStory.LastUpdatedDate;
     model.subject = scrumStory.Subject;
     model.description = scrumStory.Description;
     model.points = scrumStory.Points;
     model.priority = unmapPriorityToScrum(scrumStory.Priority);
     model.release = scrumStory.Release;
     model.sprint = scrumStory.Sprint;
     model.status = unmapStatusToScrum(scrumStory.Status);
     model.type = unmapTypeToScrum(scrumStory.Type);
     model.workNotes = scrumStory.WorkNotes;
     model.acceptanceCriteria = scrumStory.AcceptanceCriteria;
     model.blocked = scrumStory.Blocked;
     model.classification = unmapClassificationToScrum(scrumStory.Classification);
     return model;
 }
Ejemplo n.º 2
0
 public int updateScrumStory(ScrumStoryServiceModel scrumStory)
 {
     ScrumStoryRepository repo = new ScrumStoryRepository(entities);
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public int insertScrumStory(ScrumStoryServiceModel scrumStory)
 {
     ScrumStoryRepository repo = new ScrumStoryRepository();
     ScrumStory model = new ScrumStory();
     model.AcceptanceCriteria = scrumStory.acceptanceCriteria;
     model.Blocked = scrumStory.blocked;
     model.Classification = ScrumUtil.mapClassificationToScrum(scrumStory.classification);
     model.CreateDate = DateTime.Now;
     model.Description = scrumStory.description;
     model.Id = 0;
     model.LastUpdatedDate = DateTime.Now;
     model.Points = scrumStory.points;
     model.Priority = ScrumUtil.mapPriorityToScrum(scrumStory.priority);
     model.Release = scrumStory.release;
     model.Sprint = scrumStory.sprint;
     model.Status = ScrumUtil.mapStatusToScrum(scrumStory.status);
     model.Subject = scrumStory.subject;
     model.Type = ScrumUtil.mapTypeToScrum(scrumStory.status);
     model.WorkNotes = scrumStory.workNotes;
     return repo.Insert(model);
 }