예제 #1
0
        public void updateMaBN(TuDienModel td_model)
        {
            UnitOfWork uow = new UnitOfWork();

            td_model.State = EDataState.Modified;
            var v_td = td_model.CopyAs <CM_DM_TU_DIEN_WEB>();

            uow.Repository <CM_DM_TU_DIEN_WEB>().Update(v_td);
            uow.Save();
        }
예제 #2
0
 public void updateMaBN(TuDienModel td_model)
 {
     UnitOfWork uow = new UnitOfWork();
     td_model.State = EDataState.Modified;
     var v_td = td_model.CopyAs<CM_DM_TU_DIEN>();
     uow.Repository<CM_DM_TU_DIEN>().Update(v_td);
     uow.Save();
 }