public APIDataSeed(IOptions <OptionsConfiguration> configuration, IRestaurantMongoRepository restaurantRepo) { _config = configuration.Value; _restaurantRepo = restaurantRepo; }
/// <summary> /// Constructor for the controller to access required data /// </summary> /// <param name="configuration"></param> /// <param name="restaurantRepo"></param> public BlogMongoController(IOptions <OptionsConfiguration> configuration, IRestaurantMongoRepository restaurantRepo) { _config = configuration.Value; _restaurantRepo = restaurantRepo; }