/// <summary> /// Initializes a new instance of the <see cref="IncidentsController"/> class. /// </summary> /// <param name="ctx">The CTX.</param> public IncidentsController(AthManContext ctx) { context = ctx; clients = context.Clients.OrderBy(c => c.ClientID).ToList(); employees = context.Employees.OrderBy(e => e.EmployeeID).ToList(); items = context.Items.OrderBy(i => i.ItemID).ToList(); }
/// <summary> /// Initializes a new instance of the <see cref="ItemsController"/> class. /// </summary> /// <param name="ctx">The CTX.</param> public ItemsController(AthManContext ctx) { context = ctx; }
/// <summary> /// Initializes a new instance of the <see cref="HomeController"/> class. /// </summary> /// <param name="ctx">The CTX.</param> public HomeController(AthManContext ctx) { context = ctx; }
/// <summary> /// Initializes a new instance of the <see cref="EmployeesController"/> class. /// </summary> /// <param name="ctx">The CTX.</param> public EmployeesController(AthManContext ctx) { context = ctx; }
/// <summary> /// Initializes a new instance of the <see cref="ClientsController"/> class. /// </summary> /// <param name="ctx">The CTX.</param> public ClientsController(AthManContext ctx) { context = ctx; countries = context.Countries.OrderBy(c => c.Name).ToList(); }