コード例 #1
0
 public PlacesController()
 {
     _dataContext    = new DataContext();
     geometryService = new GeometryService();
     placeQuery      = new PlaceQuery(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString);
 }
コード例 #2
0
 public CountryController(AppDbContext context)
 {
     _context   = context;
     placeQuery = new PlaceQuery(_context);
     flagQuery  = new FlagQuery(_context);
 }