Example #1
0
        public Pack build(String name, String description, bool dispo, float price)
        {
            Pack pack = new Pack();
            pack.name = name;
            pack.description = description;
            pack.dispo = dispo;
            pack.price = price;

            return pack;
        }
Example #2
0
 public void addPack(Pack pack)
 {
     context.Packs.Add(pack);
     context.SaveChanges();
 }