//Contractor that loads initialies all the private fileds above
 public CasesController(ApplicationDbContext _context)
 {
     context  = _context;
     caseOps  = new CaseOps(context);
     offender = new OffenderOps(context);
     offence  = new CrudOperations <Offence>(context);
     officer  = new OfficerOps(context);
     caseof   = new CaseOffenderOps(context);
 }
 public FinePaymentController(ApplicationDbContext _context, IAmortizationCalculate _amortizationCalculate)
 {
     context = _context;
     fineOps = new FineOps(context);
     caseOps = new CaseOps(context);
     amortizationCalculate = _amortizationCalculate;
     amortization          = new CrudOperations <Amortization>(context);
     finepay     = new CrudOperations <FinePayment>(context);
     offenderOps = new OffenderOps(context);
     offence     = new CrudOperations <Offence>(context);
 }
Ejemplo n.º 3
0
 public OffendersController(ApplicationDbContext _context)
 {
     context     = _context;
     offenderOps = new OffenderOps(context);
     status      = new CrudOperations <OffenderStatus>(context);
 }