예제 #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env,
                              ElPrizeContext context, IServiceProvider service)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseAuthentication();
            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Account}/{action=Login}/{id?}");
            });
        }
예제 #2
0
 public HomeController(ElPrizeContext context)
 {
     _context = context;
 }
예제 #3
0
 public TransactionController(ElPrizeContext context)
 {
     _context = context;
 }
예제 #4
0
 public UserController(ElPrizeContext context)
 {
     _context = context;
 }
예제 #5
0
 public UserService(ElPrizeContext context)
 {
     _context = context;
 }
예제 #6
0
 public AccountController(ElPrizeContext context, IUserService userService)
 {
     _context      = context;
     _userServiece = userService;
 }
예제 #7
0
 public WalletController(ElPrizeContext context)
 {
     _context = context;
 }