Exemple #1
0
        public static void DeleteBySampleID(int _sampleID)
        {
            template_pa template_pa = _repository.Find(x => x.sample_id == _sampleID).FirstOrDefault();

            if (template_pa != null)
            {
                _repository.Delete(template_pa);
            }
        }
Exemple #2
0
        public void Update()
        {
            template_pa existing = _repository.Find(x => x.sample_id == this.sample_id).FirstOrDefault();

            _repository.Edit(existing, this);
        }