Ejemplo n.º 1
0
        public IEnumerable<ScrumEpicServiceModel> getEpicsByUserAssigned(int id)
        {
            ScrumEpicRepository repo = new ScrumEpicRepository(entities);
            List<ScrumEpicServiceModel> models = new List<ScrumEpicServiceModel>();
            IEnumerable<ScrumEpic> epics = repo.getEpicsByUserAssigned(id);

            foreach (ScrumEpic epic in epics) {
                models.Add(ScrumUtil.mapScrumEpicEntityToModel(epic));
            }

            return models;
        }
Ejemplo n.º 2
0
        public IEnumerable<ScrumEpicServiceModel> getEpicsByStatus(string status)
        {
            ScrumEpicRepository repo = new ScrumEpicRepository(entities);
            List<ScrumEpicServiceModel> models = new List<ScrumEpicServiceModel>();
            IEnumerable<ScrumEpic> epics = repo.getEpicsByStatus(ScrumUtil.mapStatusToScrum(status));

            foreach (ScrumEpic epic in epics) {
                models.Add(ScrumUtil.mapScrumEpicEntityToModel(epic));
            }

            return models;
        }
Ejemplo n.º 3
0
        public IEnumerable<ScrumEpicServiceModel> getEpicsByKeywordSubject(string text)
        {
            ScrumEpicRepository repo = new ScrumEpicRepository(entities);
            List<ScrumEpicServiceModel> models = new List<ScrumEpicServiceModel>();
            IEnumerable<ScrumEpic> epics = repo.getEpicsByKeywordSubject(text);

            foreach (ScrumEpic epic in epics) {
                models.Add(ScrumUtil.mapScrumEpicEntityToModel(epic));
            }

            return models;
        }
Ejemplo n.º 4
0
 public bool deleteScrumEpic(int id)
 {
     ScrumEpicRepository repo = new ScrumEpicRepository(entities);
     ScrumEpic scrumEpic = repo.Get(id);
     try {
         repo.Delete(scrumEpic);
         return true;
     }
     catch (Exception ex) {
         _errorMessage = ex.Message;
         return false;
     }
 }
Ejemplo n.º 5
0
 public ScrumEpicServiceModel getScrumEpic(int id)
 {
     ScrumEpicRepository repo = new ScrumEpicRepository();
     ScrumEpic scrumEpic = repo.Get(id);
     return ScrumUtil.mapScrumEpicEntityToModel(scrumEpic);
 }
Ejemplo n.º 6
0
 public int updateScrumEpic(ScrumEpicServiceModel scrumEpic)
 {
     ScrumEpicRepository repo = new ScrumEpicRepository(entities);
     throw new NotImplementedException();
 }
Ejemplo n.º 7
0
 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);
 }