public static void Initialize(VitecMVProduktAPIContext Context) { Context.Database.EnsureCreated(); if (Context.Products.Any()) { return; } else { var Products = new Products { Title = "CDOrd", Picture = null, Price = 50, Description = "Lorem ipsum" }; } }
public ProductsController(VitecMVProduktAPIContext context) { _context = context; }