Beispiel #1
0
        public double CalcularFrete(int socioID)
        {
            Socio  socio      = _socio.GetSocio(socioID);
            double valorFrete = socio.Limite * 0.5;

            return(valorFrete);
        }
 public double CalcularFrete(int socioID)
 {
     if (socioID > 0)
     {
         double socioValorFrete = 0;
         Socio  socio           = _socio.GetSocio(socioID);
         socioValorFrete = 10 + socio.Limite * 0.8;
         return(socioValorFrete);
     }
     else
     {
         return(-1);
     }
 }