Exemplo n.º 1
0
 public APIDataSeed(IOptions <OptionsConfiguration> configuration, IRestaurantMongoRepository restaurantRepo)
 {
     _config         = configuration.Value;
     _restaurantRepo = restaurantRepo;
 }
Exemplo n.º 2
0
 /// <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;
 }