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