コード例 #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, EffortlessContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            context.Database.Migrate();
            app.UseCors("CorsPolicy");
            app.UseAuthentication();
            app.UseMvc();
        }
コード例 #2
0
 public WorkPeriodController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }
コード例 #3
0
 public PrivilegeController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }
コード例 #4
0
 public RoleController(EffortlessContext context, IMapper mapper)
 {
     _mapper     = mapper;
     _unitOfWork = new UnitOfWork(context);
 }
コード例 #5
0
 public DepartmentController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }
コード例 #6
0
 public AuthController(EffortlessContext context, IJwtSettings jwtSettings, IMapper mapper)
 {
     _unitOfWork  = new UnitOfWork(context);
     _jwtSettings = jwtSettings;
     _mapper      = mapper;
 }
コード例 #7
0
 public CompanyController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }