//WEB API URL :api/warehouse-sync/sync-properties/{siteId} public async Task <IHttpActionResult> SyncPProperties(int siteId) { var postedData = PPropertyResponse.BindJson(new StreamReader(System.Web.HttpContext.Current.Request.InputStream).ReadToEnd()); var processedItems = await _warehouseSyncService.UpdatePropertiesInformationForSite(siteId, postedData.Properties); var result = PropertySyncItemsResponse.MapAll(processedItems, SyncEntityTypeEnum.Properties); return(Ok(result)); }