WPI: GetWPIProductById

This commit is contained in:
sergey 2013-06-05 12:11:05 +03:00
parent b62b699461
commit 7ceccd4c10
7 changed files with 437 additions and 238 deletions

View file

@ -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()
{