public UsersController() { _context = new FarmWorkerAppContext(); //_context.Configuration.LazyLoadingEnabled = false; }
public LoginCredentialsController() { _context = new FarmWorkerAppContext(); _context.Configuration.LazyLoadingEnabled = false; //_context.Configuration.ProxyCreationEnabled = false; }