public CustomerController(DashboardPostgresContext context) { _context = context; }
public DataSeed(DashboardPostgresContext context) { _context = context; }
public ServerController(DashboardPostgresContext context) { _context = context; }
public Customer GetRandomCustomer(DashboardPostgresContext context) { var randomId = _rand.Next(1, context.Customers.Count()); return(context.Customers.First(c => c.Id == randomId)); }