/// <summary> /// Gets a tax rate /// </summary> /// <param name="productId">Tax rate identifier</param> /// <returns>Tax rate</returns> public YandexMarketProductRecord GetById(int productId) { if (productId == 0) { return(null); } var obj = this._productRepository.GetById(productId); _productRepository.Detach(obj); return(obj.FormatMe()); }