// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, BackEndContext dbContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } //// Creating database if not exists //dbContext.Database.EnsureCreated(); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
/// <summary> /// Initializes a new instance of the <see cref="FuncionarioRepository"/> class. /// Construtor padrão de <see cref="FuncionarioRepository"/>. /// </summary> /// <param name="context"> /// O contexto do repositório. Veja <see cref="BackEndContext"/>. /// </param> public FuncionarioRepository(BackEndContext context) : base(context) { }
public ActivityReservationsController(BackEndContext context) { _context = context; }
public UnitOfWork(BackEndContext context) { this.context = context; }
public InvoicesController(BackEndContext context) { _context = context; }
public SpeakersController(BackEndContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="FormaPagamentoRepository"/> class. /// Construtor padrão de <see cref="FormaPagamentoRepository"/>. /// </summary> /// <param name="context"> /// O contexto do repositório. Veja <see cref="BackEndContext"/>. /// </param> public FormaPagamentoRepository(BackEndContext context) : base(context) { }
public ProductsController(BackEndContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="BaseRepository{TEntity}"/> class. /// A default contructor. /// Contrutor padrão. /// </summary> /// <param name="context"> /// The context to be used. /// O contexto a ser utilizado. /// </param> public BaseRepository(BackEndContext context) { this.Db = context; this.DbSet = this.Db.Set <TEntity>(); }
public AttendeesController(BackEndContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="CargoRepository"/> class. /// Construtor padrão de <see cref="CargoRepository"/>. /// </summary> /// <param name="context"> /// O contexto do repositório. Veja <see cref="BackEndContext"/>. /// </param> public CargoRepository(BackEndContext context) : base(context) { }
public ActivitiesController(BackEndContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="SituacaoRepository"/> class. /// Construtor padrão de <see cref="SituacaoRepository"/>. /// </summary> /// <param name="context"> /// O contexto do repositório. Veja <see cref="BackEndContext"/>. /// </param> public SituacaoRepository(BackEndContext context) : base(context) { }
/// <summary> /// Initializes a new instance of the <see cref="SeguradoraRepository"/> class. /// Construtor padrão de <see cref="SeguradoraRepository"/>. /// </summary> /// <param name="context"> /// O contexto do repositório. Veja <see cref="MonliContext"/>. /// </param> public SeguradoraRepository(BackEndContext context) : base(context) { }
/// <summary> /// Initializes a new instance of the <see cref="FranqueadoRepository"/> class. /// Construtor padrão de <see cref="FranqueadoRepository"/>. /// </summary> /// <param name="context"> /// O contexto do repositório. Veja <see cref="BackEndContext"/>. /// </param> public FranqueadoRepository(BackEndContext context) : base(context) { }
public ResortsController(BackEndContext context) { _context = context; }
public SessionsController(BackEndContext context) { _context = context; }
public ProductsController(BackEndContext context, IAuthorizationService authorizationService) { _context = context; _authorizationService = authorizationService; }
public PostsController(BackEndContext context) { _context = context; }
public PersonsController(BackEndContext context) { _context = context; }
public CabinReservationsController(BackEndContext context) { _context = context; }
public CabinImagesController(BackEndContext context) { _context = context; }