private List <ProductProperty> getProductProperties(long productId) { var data = _productApi.GetProperties(productId); var list = JArrayToList.Convert <ProductProperty>(data.Data); return(list); }
private ProductProperty getCheaperProductProperty(long productId) { var data = _productAPI.GetProperties(productId); var list = JArrayToList.Convert <ProductProperty>(data.Data); list.Sort((x, y) => x.Price.CompareTo(y.Price)); return(list[0]); }