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(); }
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(); }