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); } }
public void Update() { template_pa existing = _repository.Find(x => x.sample_id == this.sample_id).FirstOrDefault(); _repository.Edit(existing, this); }