public Int32 SaveProduct(PricedProductDTO product)
        {
            Int32 id;
            if (product.Id == 0)
            {
                id = _unitOfWork.ProductRepository.Create(new Product()
                {
                    Name = product.Name,
                    Price = product.Price
                }).Id;
            }
            else
            {
                var prod = _unitOfWork.ProductRepository.Read().Where(x => x.Id == product.Id).FirstOrDefault();
                prod.Name = product.Name;
                prod.Price = product.Price;
                id = prod.Id;

                _unitOfWork.ProductRepository.Update(prod);
            }
            _unitOfWork.SaveChanges();
            return id;
        }
 public Int32 SaveProduct(PricedProductDTO userGroup)
 {
     return _productManager.SaveProduct(userGroup);
 }