public LoginController(ExposoftwareContext context, IOptions <AppSetting> appSettings) { _context = context; var admin = _context.Users.Find("admin"); if (admin == null) { _context.Users.Add(new User() { UserName = "******", Password = "******", Email = "*****@*****.**", Estado = "AC", } ); var registrosGuardados = _context.SaveChanges(); } _userService = new UserService(context); _jwtService = new JwtService(appSettings); }
public CalificacionesService(ExposoftwareContext context) { _context = context; }
public AsignaturaService(ExposoftwareContext context) { _context = context; }
public DescripcionesCService(ExposoftwareContext context) { _context = context; }
public EstudianteService(ExposoftwareContext context) { _context = context; }
public RubricaController(ExposoftwareContext context) { _rubricaService = new RubricaService(context); }
public DocenteService(ExposoftwareContext context) { _context = context; }
public ProyectoService(ExposoftwareContext context) { _context = context; }
public ItemsRubricaController(ExposoftwareContext context) { _itemsRubricaService = new ItemsRubricaService(context); }
public AsignaturaController(ExposoftwareContext context, IHubContext <SignalHub> hubContext) { _hubContext = hubContext; _asignaturaService = new AsignaturaService(context); }
public UserService(ExposoftwareContext context) => _context = context;
public UsuarioService(ExposoftwareContext context) { _context = context; }
public EmailServiceDocente(ExposoftwareContext context) { _context = context; }
public PendonService(ExposoftwareContext context) { _context = context; }
public ProyectoController(ExposoftwareContext context, IHubContext <SignalHub> hubContext) { _hubContext = hubContext; _proyectoService = new ProyectoService(context); _emailService = new EmailService(context); }
public DescripcionCalificacionController(ExposoftwareContext context) { _descripcionService = new DescripcionesCService(context); _emailPuntajeService = new EmailServicePuntaje(context); }
public EmailServicePuntaje(ExposoftwareContext context) { _context = context; }
public EmailServicePendon(ExposoftwareContext context) { _context = context; }
public EstudianteController(ExposoftwareContext context) { _estudianteService = new EstudianteService(context); }
public CalificacionController(ExposoftwareContext context) { _calificacionService = new CalificacionesService(context); }
public InscripcionService(ExposoftwareContext context) { _context = context; }
public PendonController(ExposoftwareContext context, IHubContext <SignalHub> hubContext) { _hubContext = hubContext; _pendonService = new PendonService(context); _emailService = new EmailServicePendon(context); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ExposoftwareContext context) { context.Database.Migrate(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); if (!env.IsDevelopment()) { app.UseSpaStaticFiles(); } app.UseRouting(); #region global cors policy activate Authentication/Authorization app.UseCors(x => x .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader()); app.UseAuthentication(); app.UseAuthorization(); #endregion app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller}/{action=Index}/{id?}"); endpoints.MapHub <SignalHub>("/signalHub"); }); //start swagger app.UseSwagger(); app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); }); //end swagger app.UseSpa(spa => { // To learn more about options for serving an Angular SPA from ASP.NET Core, // see https://go.microsoft.com/fwlink/?linkid=864501 spa.Options.SourcePath = "ClientApp"; if (env.IsDevelopment()) { spa.UseAngularCliServer(npmScript: "start"); } }); }
public DocenteController(ExposoftwareContext context, IHubContext <SignalHub> hubContext) { _hubContext = hubContext; _docenteService = new DocenteService(context); _emailService = new EmailServiceDocente(context); }
public ItemsRubricaService(ExposoftwareContext context) { _context = context; }
public AreaService(ExposoftwareContext context) { _context = context; }
public InscripcionController(ExposoftwareContext context) { _inscripcionService = new InscripcionService(context); }
public UsuarioController(ExposoftwareContext context) { _usuarioService = new UsuarioService(context); }