Ejemplo n.º 1
0
        // 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)
 {
 }
Ejemplo n.º 3
0
 public ActivityReservationsController(BackEndContext context)
 {
     _context = context;
 }
 public UnitOfWork(BackEndContext context)
 {
     this.context = context;
 }
Ejemplo n.º 5
0
 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)
 {
 }
Ejemplo n.º 8
0
 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>();
 }
Ejemplo n.º 10
0
 public AttendeesController(BackEndContext context)
 {
     _context = context;
 }
Ejemplo n.º 11
0
 /// <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)
 {
 }
Ejemplo n.º 12
0
 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)
 {
 }
Ejemplo n.º 14
0
 /// <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)
 {
 }
Ejemplo n.º 16
0
 public ResortsController(BackEndContext context)
 {
     _context = context;
 }
Ejemplo n.º 17
0
 public SessionsController(BackEndContext context)
 {
     _context = context;
 }
Ejemplo n.º 18
0
 public ProductsController(BackEndContext context, IAuthorizationService authorizationService)
 {
     _context = context;
     _authorizationService = authorizationService;
 }
 public PostsController(BackEndContext context)
 {
     _context = context;
 }
Ejemplo n.º 20
0
 public PersonsController(BackEndContext context)
 {
     _context = context;
 }
 public CabinReservationsController(BackEndContext context)
 {
     _context = context;
 }
 public CabinImagesController(BackEndContext context)
 {
     _context = context;
 }