Exemplo n.º 1
0
        public void InsertList(List <m_evaluation_of_particles> _lists)
        {
            foreach (m_evaluation_of_particles tmp in _lists)
            {
                switch (tmp.RowState)
                {
                case CommandNameEnum.Add:
                    _repository.Add(tmp);
                    break;

                case CommandNameEnum.Edit:
                    m_evaluation_of_particles existing = _repository.Find(x => x.id == tmp.id).FirstOrDefault();
                    _repository.Edit(existing, tmp);
                    break;
                }
            }
        }
Exemplo n.º 2
0
        public void Update()
        {
            m_evaluation_of_particles existing = _repository.Find(x => x.id == this.id).FirstOrDefault();

            _repository.Edit(existing, this);
        }