示例#1
0
 public static ScrumEpicServiceModel mapScrumEpicEntityToModel(ScrumEpic epic)
 {
     ScrumEpicServiceModel model = new ScrumEpicServiceModel();
     model.createdDate = epic.CreateDate;
     model.description = epic.Description;
     model.id = epic.Id;
     model.lastUpdatedDate = epic.LastUpdatedDate;
     model.subject = epic.Subject;
     model.description = epic.Description;
     model.workNotes = epic.WorkNotes;
     model.status = ScrumUtil.unmapStatusToScrum(epic.Status);
     return model;
 }
示例#2
0
 public int updateScrumEpic(ScrumEpicServiceModel scrumEpic)
 {
     ScrumEpicRepository repo = new ScrumEpicRepository(entities);
     throw new NotImplementedException();
 }
示例#3
0
 public int insertScrumEpic(ScrumEpicServiceModel scrumEpic)
 {
     ScrumEpicRepository repo = new ScrumEpicRepository(entities);
     ScrumEpic model = new ScrumEpic();
     model.CreateDate = DateTime.Now;
     model.LastUpdatedDate = DateTime.Now;
     model.Subject = scrumEpic.subject;
     model.Status = ScrumUtil.mapStatusToScrum(scrumEpic.status);
     model.EnvironmentDowntimeId = scrumEpic.environmentDowntime.Id;
     model.WorkNotes = scrumEpic.workNotes;
     return repo.Insert(model);
 }