public BaseApiController( budgetContext context, IConfiguration configuration ) { // Instantiate the required classes through DI DbContext = context; Configuration = configuration; // Instantiate a single JsonSerializerSettings object // that can be reused multiple times. JsonSettings = new JsonSerializerSettings() { Formatting = Formatting.Indented }; }
public budgetCategoryController(budgetContext db, IConfiguration configuration) : base(db, configuration) { }