/// This constructor is designed to use as a method to inject the database context into a /// prodcution, test or development environment public CandidateController(ICandidateDb context) { this.db = context; }
public CandidateController() { this.db = new CandidateDbCtx(); }