JuiceyBrucey wrote:Not sure where to see the logs, where is that?Cheers
In the requestlogs folder on the filesystem relative to where your JiwaAPISelfHostedService.exe is deployed.
JuiceyBrucey wrote:Not sure where to see the logs, where is that?Cheers

http://localhost:81/Custom/GetInventoryItemsLikeNameRequest?itemname=network%20server&apikey=APIKEyValueGoesHere


System.Diagnostics.Debugger.Launch();
System.Diagnostics.Debugger.Break();

main.Description LIKE '%@ItemName%'
ORDER BY main.Description
;";
string sinput = request.ItemName;
return Db.SqlList<MyCustomModel>(query,
new {ItemName = sinput}).ConvertTo<GetInventoryItemsLikeNameResponse>();}exec sp_executesql N'SELECT
main.LastSavedDateTime,
main.InventoryID,
main.PartNo,
main.Description,
main.Status,
main.DefaultPrice,
main.RRPPrice,
main.Aux2,
main.BackOrderable,
price.InventoryID,
price.Price1,
price.Price2,
price.Price3,
price.Price4,
price.Price9
FROM IN_Main main
LEFT JOIN
IN_SellingPrices price
ON
price.InventoryID=main.InventoryID
WHERE
main.Description LIKE ''%@ItemName%''
ORDER BY main.Description
;',N'@ItemName varchar(14)',@ItemName='Network Server'exec sp_executesql N'SELECT
main.LastSavedDateTime,
main.InventoryID,
main.PartNo,
main.Description,
main.Status,
main.DefaultPrice,
main.RRPPrice,
main.Aux2,
main.BackOrderable,
price.InventoryID,
price.Price1,
price.Price2,
price.Price3,
price.Price4,
price.Price9
FROM IN_Main main
LEFT JOIN
IN_SellingPrices price
ON
price.InventoryID=main.InventoryID
WHERE
main.Description LIKE @ItemName
ORDER BY main.Description
;',N'@ItemName varchar(16)',@ItemName='%Network Server%'

Return to Technical and or Programming
Users browsing this forum: No registered users and 0 guests