public HtmlString SetPrice(Price price) { Bm2s.Connectivity.Common.Article.Price connect = new Bm2s.Connectivity.Common.Article.Price(); connect.Request.Price = price; connect.Post(); return connect.Response.Prices.FirstOrDefault().ToHtmlJson(); }
public HtmlString SetValue(Article article, List<Price> prices) { Bm2s.Connectivity.Common.Article.Article connect = new Bm2s.Connectivity.Common.Article.Article(); connect.Request.Article = article; connect.Post(); Bm2s.Connectivity.Common.Article.Price connectPrice = new Bm2s.Connectivity.Common.Article.Price(); foreach (Price price in prices) { price.Article = connect.Response.Articles.FirstOrDefault(); connectPrice.Request.Price = price; connectPrice.Post(); } return connect.Response.Articles.FirstOrDefault().ToHtmlJson(); }