Exemplo n.º 1
0
        public static Factory GetFactory(FactoryProductType type)
        {
            switch (type)
            {
            case FactoryProductType.Planes:
                return(new PlaneFactory());

            default:
                return(null);
            }
        }
Exemplo n.º 2
0
 public static void InsertProductType(String prodtype, String desc)
 {
     db.ProductTypes.Add(FactoryProductType.InsProdType(prodtype, desc));
     db.SaveChanges();
 }