WPI: GetWPIProductById
This commit is contained in:
parent
b62b699461
commit
7ceccd4c10
7 changed files with 437 additions and 238 deletions
|
@ -480,6 +480,27 @@ namespace WebsitePanel.Server
|
|||
}
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public WPIProduct GetWPIProductById(string productdId)
|
||||
{
|
||||
try
|
||||
{
|
||||
Log.WriteStart("GetWPIProductById");
|
||||
WpiHelper wpi = GetWpiFeed();
|
||||
|
||||
Product product = wpi.GetWPIProductById(productdId);
|
||||
WPIProduct wpiProduct = ProductToWPIProduct(product);
|
||||
|
||||
Log.WriteEnd("GetWPIProductById");
|
||||
return wpiProduct;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.WriteError("GetWPIProductById", ex);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public WPITab[] GetWPITabs()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue