コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemsController"/> class.
 /// </summary>
 /// <param name="ctx">The CTX.</param>
 public ItemsController(AthManContext ctx)
 {
     context = ctx;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 /// <param name="ctx">The CTX.</param>
 public HomeController(AthManContext ctx)
 {
     context = ctx;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EmployeesController"/> class.
 /// </summary>
 /// <param name="ctx">The CTX.</param>
 public EmployeesController(AthManContext ctx)
 {
     context = ctx;
 }
コード例 #5
0
 /// <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();
 }