Example #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);
 }
 public int Update(ScrumTheme entity)
 {
     throw new NotImplementedException();
 }
 public int Insert(ScrumTheme entity)
 {
     context.ScrumThemes.Add(entity);
     update();
     return entity.Id;
 }
 public void Delete(ScrumTheme entity)
 {
     context.Entry(entity).State = EntityState.Deleted;
     update();
 }
Example #5
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;
 }