// 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();
        }
 public WorkPeriodController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }
 public PrivilegeController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }
 public RoleController(EffortlessContext context, IMapper mapper)
 {
     _mapper     = mapper;
     _unitOfWork = new UnitOfWork(context);
 }
 public DepartmentController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }
 public AuthController(EffortlessContext context, IJwtSettings jwtSettings, IMapper mapper)
 {
     _unitOfWork  = new UnitOfWork(context);
     _jwtSettings = jwtSettings;
     _mapper      = mapper;
 }
 public CompanyController(EffortlessContext context, IMapper mapper)
 {
     _unitOfWork = new UnitOfWork(context);
     _mapper     = mapper;
 }