Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public int Update(ScrumTheme entity)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public int Insert(ScrumTheme entity)
 {
     context.ScrumThemes.Add(entity);
     update();
     return entity.Id;
 }
Exemplo n.º 4
0
 public void Delete(ScrumTheme entity)
 {
     context.Entry(entity).State = EntityState.Deleted;
     update();
 }
Exemplo n.º 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;
 }