public int AddProductShippingDetail(DLModel.ProductShippingDetail _productShippingDetail)
 {
     if (_productShippingDetailRepository.GetAll(rk => rk.ShippingPaymentID == _productShippingDetail.ShippingPaymentID).Count() == 0)
     {
         return(_productShippingDetailRepository.Add((DLModel.ProductShippingDetail) new DLModel.ProductShippingDetail().InjectFrom(_productShippingDetail)).ProductShippingDetailID);
     }
     else
     {
         return(UpdateProductShippingDetailByShippingPaymentID(_productShippingDetail));
     }
 }
 public int UpdateProductShippingDetailByShippingPaymentID(DLModel.ProductShippingDetail _productShippingDetail)
 {
     _productShippingDetailRepository.UpdateProductShippingDetailByShippingPaymentID(_productShippingDetail);
     return(0);
 }
 public int UpdateProductShippingDetail(DLModel.ProductShippingDetail _productShippingDetail)
 {
     return(_productShippingDetailRepository.Update((DLModel.ProductShippingDetail) new DLModel.ProductShippingDetail().InjectFrom(_productShippingDetail)));
 }