static void InitializeDatabase() { using (var ctx = new DataAccess.Context()) { ctx.Database.Initialize(false); } }
public ServicesController() { context = new DataAccess.Context(); customerServices = new CustomerServices(); employeeServices = new EmployeeServices(); orderServices = new OrderServices(); orderDetailsServices = new OrderDetailsServices(); productServices = new ProductServices(); }
public ServicesController() { this.context = new DataAccess.Context(); this.customerServices = new CustomerServices(); this.employeeServices = new EmployeeServices(); this.orderServices = new OrderServices(); this.orderDetailsServices = new OrderDetailsServices(); this.productServices = new ProductServices(); }