// This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            FirebaseLocationDal.CreateLocationData();
            FirebaseOperationDal.CreateList();
            services.AddCors();
            services.AddControllers();

            services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo {
                    Title = "WebAPI", Version = "v1"
                }); });
        }
示例#2
0
 public IResult CacheRestore()
 {
     FirebaseLocationDal.CreateLocationData();
     FirebaseOperationDal.CreateList();
     return(new SuccessResult("Cache Restored"));
 }