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; }
public int updateScrumEpic(ScrumEpicServiceModel scrumEpic) { ScrumEpicRepository repo = new ScrumEpicRepository(entities); throw new NotImplementedException(); }
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); }