public void UpdateBySampleID() { template_wd_ftir_coverpage existing = _repository.Find(x => x.sample_id == this.sample_id).FirstOrDefault(); this.ID = existing.ID; _repository.Edit(existing, this); }
public void Update() { template_wd_ftir_coverpage existing = _repository.Find(x => x.ID == this.ID).FirstOrDefault(); _repository.Edit(existing, this); }