public void Sync(PSmartStoreInfo info) { var pSmartStore = PSmartStore.Create(info); _pSmartStoreRepository.InsertOrUpdate(pSmartStore); _pSmartStoreRepository.Save(); }
public static PSmartStore Create(PSmartStoreInfo pSmartStoreInfo) { return(new PSmartStore(pSmartStoreInfo.Id, pSmartStoreInfo.Shr, pSmartStoreInfo.Date_Created, pSmartStoreInfo.Status, pSmartStoreInfo.Status_Date, pSmartStoreInfo.Uuid)); }