private static OPCH_Purchase SyncUpload(OPCH_Purchase purchase) { var result = WebApiClient.AddPurchase(purchase).Result; purchase.UpdateModelPropertiesFrom(result.Model); purchase.StateL = LocalStatus.Procesado; result.UpdateEntityVersion(); PurchaseHelper.SaveTransaction(purchase); return(purchase); }