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; }
public void addPack(Pack pack) { context.Packs.Add(pack); context.SaveChanges(); }