示例#1
0
 public int insertScrumTheme(ScrumThemeServiceModel scrumEpic)
 {
     ScrumThemeRepository repo = new ScrumThemeRepository(entities);
     ScrumTheme model = new ScrumTheme();
     model.CreateDate = scrumEpic.createdDate;
     model.LastUpdatedDate = scrumEpic.lastUpdatedDate;
     model.Subject = scrumEpic.subject;
     model.Id = 0;
     return repo.Insert(model);
 }
示例#2
0
 public int updateScrumTheme(ScrumThemeServiceModel scrumEpic)
 {
     ScrumThemeRepository repo = new ScrumThemeRepository(entities);
     throw new NotImplementedException();
 }
示例#3
0
 public static ScrumThemeServiceModel mapScrumThemeEntityToModel(ScrumTheme scrumTheme)
 {
     ScrumThemeServiceModel model = new ScrumThemeServiceModel();
     model.createdDate = scrumTheme.CreateDate;
     model.description = scrumTheme.Description;
     model.id = scrumTheme.Id;
     model.lastUpdatedDate = scrumTheme.LastUpdatedDate;
     model.subject = scrumTheme.Subject;
     return model;
 }