Exemplo n.º 1
0
 public SalesRecordsController(SalesRecordService s)
 {
     _salesRecordService = s;
 }
Exemplo n.º 2
0
 public SalesRecordController(SalesRecordService salesRecordService)
 {
     _salesRecordService = salesRecordService;
 }
Exemplo n.º 3
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, SeedingService seedingService, SalesRecordService salesRecordService)
        {
            var enUs = new CultureInfo("en-Us");
            var localizationOptions = new RequestLocalizationOptions
            {
                DefaultRequestCulture = new RequestCulture(enUs),
                SupportedCultures     = new List <CultureInfo> {
                    enUs
                },
                SupportedUICultures = new List <CultureInfo> {
                    enUs
                }
            };

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                seedingService.Seed();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
                app.UseHsts();
            }

            app.UseRequestLocalization(localizationOptions);
            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseCookiePolicy();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }
 public SalesRecordsController(SalesRecordService salesRecordService, SellerService sellerService)
 {
     _salesRecordService = salesRecordService;
     _sellerService      = sellerService;
 }
Exemplo n.º 5
0
 public SalesRecordsController(SalesRecordService salesRecordService)
 {
     this._salesRecordService = salesRecordService;
 }
Exemplo n.º 6
0
 public SalesRecordsController(SalesRecordService recordService)
 {
     _recordService = recordService;
 }
Exemplo n.º 7
0
 public SalesRecordsController(SalesRecordService service) => _service = service;
 public SalesRecordsController(SalesRecordService services)
 {
     service = services;
 }
 // construtor
 public SellersController(SellersService sellerService, DepartmentService departmentService, SalesRecordService salesRecordService)
 {
     _sellerService      = sellerService;
     _departmentService  = departmentService;
     _salesRecordService = salesRecordService;
 }
 public SalesRecordsController(SalesRecordService SalesRecordsService)
 {
     _SalesRecordsService = SalesRecordsService;
 }
Exemplo n.º 11
0
 public SalesRecordsController(SalesRecordService salesRecord)
 {
     _salesRecord = salesRecord;
 }
 public SalesRecordsController(SalesContext context, SalesRecordService salesRecordService, SellerService sellerService)
 {
     _context            = context;
     _salesRecordService = salesRecordService;
     _sellerService      = sellerService;
 }
Exemplo n.º 13
0
 public SalesRecordsController(SalesRecordService salesRecordsServices)
 {
     this.salesRecordsServices = salesRecordsServices;
 }
 public SalesRecordsController(SalesRecordService srservice)
 {
     _srservice = srservice;
 }
Exemplo n.º 15
0
 public SalesRecordsController(SalesRecordService recordServices)
 {
     _recordServices = recordServices;
 }