예제 #1
0
        public void Delete()
        {
            tb_m_gcms_cas existing = _repository.Find(x => x.ID == this.ID).FirstOrDefault();

            if (existing != null)
            {
                _repository.Delete(this);
            }
        }
예제 #2
0
        public void Update()
        {
            tb_m_gcms_cas existing = _repository.Find(x => x.ID == this.ID).FirstOrDefault();

            if (existing != null)
            {
                _repository.Edit(existing, this);
            }
            else
            {
                //_repository.Add(this);
            }
        }