public void Save(EditProductPricingViewModel pItem)
 {
     Guid id = pItem.Id;
     ProductPricing pPrice;
     pPrice = _productPricingRepository.GetById(id);
    
 }
 public EditProductPricingViewModel Get(Guid id)
  {
      ProductPricing pPricing = _productPricingRepository.GetById(id);
      EditProductPricingViewModel ePV = new EditProductPricingViewModel
      {
            Id=pPricing.Id,
            Active = pPricing._Status == EntityStatus.Active ? true : false,
              TierId=pPricing.Tier.Id,
                ProductId=pPricing.ProductRef.ProductId,
                ProductName=_productRepository.GetById(pPricing.ProductRef.ProductId).Description,
          TierName = pPricing.Tier.Name,
                  PItems=pPricing.ProductPricingItems.Select(n=>new EditProductPricingViewModel.PricingItemVM
                   {
                    CurrentEffectiveDate=n.EffectiveDate,
                     CurrentExFactory=n.ExFactoryRate,
                      CurrentSellingPrice=n.SellingPrice
                   }
                  ).ToList()
       };
      return ePV;
  }