public void AddEditBacklogItem(BacklogItem item)
        {
            if (item.Id == 0)
            {
                _backlogItems.Add(item);
            }
            else
            {
                var itemInDb = _backlogItems.First(b => b.Id == item.Id);
                itemInDb.UpdateValue(item);
            }

            this.ValidateBacklogItems();
        }
        public void EditNonMasterData(string platformVersion, string jiraLink, string sourceCodeLink, string note,
                                      DateTime?projectEndDate, BacklogItem item, List <ProjectAccess> projectAccesses)
        {
            _platformVersion = platformVersion;
            _jiraLink        = jiraLink;
            _sourceCodeLink  = sourceCodeLink;
            _note            = note;
            _projectEndDate  = projectEndDate;

            AddEditBacklogItem(item);

            ReplaceProjectAccess(projectAccesses);

            ValidateLinkProperties();
            ValidateProjectEndDate();
        }
 public void UpdateValue(BacklogItem item)
 {
     UpdateValue(item.Id, item.ProjectId, item.Sprint, item.ItemsAdded, item.StoryPointsAdded, item.ItemsDone,
                 item.StoryPointsDone, item.YearWeek);
 }