public void AddVendor(Vendor vendor) { using (var currentContext = new PizzaSericeContext()) { currentContext.Vendors.Add(vendor); currentContext.SaveChanges(); } }
public void CreateVendor(Vendor vendor) { VendorRepository.Instance.AddVendor(vendor); }