public CustomersController(IAsyncRepository<Customer> repo, IAuthoriseAccessToData<Customer> dataAccessAuthoriser, AutoResolveContext db) : base(db)
        {
            __loggingResourceName = "Customer";
            _repo = repo;
            _dataAccessAuthoriser = dataAccessAuthoriser;

        }
 public NotificationsController() : base()
 {
     __loggingResourceName = "Notification";
     _repo = new NotificationsAsyncRepository(_db);
     customerRepo = new CustomerAsyncRepository(_db);
     accidentRepo = new AccidentAsyncRepository(_db);
     otherDriversRepo = new OtherDriverAsyncRepository(_db);
     _dataAccessAuthoriser = new AuthoriseCustomerDataAccess(_db);
 }
        public NotificationsController(IAsyncRepository<ExternalNotification> repo, IAuthoriseAccessToData<Customer> dataAccessAuthoriser, AutoResolveContext db) : base(db)
        {
            __loggingResourceName = "Notification";
            _db = db;
            _repo = repo;
            customerRepo = new CustomerAsyncRepository(_db);
            accidentRepo = new AccidentAsyncRepository(_db);
            otherDriversRepo = new OtherDriverAsyncRepository(_db);
            _dataAccessAuthoriser = dataAccessAuthoriser;

        }
        // GET: api/Customers


        public CustomersController() : base()
        {
            __loggingResourceName = "Customer";
            _repo = new CustomerAsyncRepository();
            _dataAccessAuthoriser = new AuthoriseCustomerDataAccess();
        }
 public EntryController() : base()
 {
     
     _dataAccessAuthoriser = new AuthoriseCustomerDataAccess(_db);
 }
 public WitnessesController()
 {
     __loggingResourceName = "Witness";
     repo = new WitnessAsyncRepository(_db);
     _dataAccessAuthoriser = new AuthoriseCustomerDataAccess(_db);
 }
 public AccidentsController()
 {
     __loggingResourceName = "Accident";
     repo = new AccidentAsyncRepository(_db);
     _dataAccessAuthoriser = new AuthoriseCustomerDataAccess(_db);
 }
 public OtherDriversController()
 {
     __loggingResourceName = "OtherDriver";
     repo = new OtherDriverAsyncRepository(_db);
     _dataAccessAuthoriser = new AuthoriseCustomerDataAccess(_db);
 }