/// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static decimal CalculateVolume(FrontCalculateBundle bundle) { var weihgtPrice = SelectTarif.SelectTa(bundle.CountryId, bundle.BundleWeight); var total = ((bundle.BundleHeight * bundle.BundleLenght * bundle.BundleWidth * weihgtPrice) / 6000) * bundle.BundelCount; return(total); }
/// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static decimal CalculateWeight(FrontCalculateBundle bundle) { var total = ((SelectTarif.SelectTa(bundle.CountryId, bundle.BundleWeight)) * bundle.BundleWeight) * bundle.BundelCount; return(total); }