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); }
public int updateScrumTheme(ScrumThemeServiceModel scrumEpic) { ScrumThemeRepository repo = new ScrumThemeRepository(entities); throw new NotImplementedException(); }
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; }