Exemplo n.º 1
0
 public void AddSpecialization(Specialization s)
 {
     if (s.TariffMin < 26.88 || s.TariffMax < 26.88)
     {
         throw new Exception("Min / Max rate cannot be less than minimum wage");
     }
     if (s.TariffMin > s.TariffMax)
     {
         throw new Exception("Minimum rate cannot be less maximum rate");
     }
     dal.AddSpecialization(s);
 }