Example #1
0
 public SalesRecordsController(SalesRecordService s)
 {
     _salesRecordService = s;
 }
Example #2
0
 public SalesRecordController(SalesRecordService salesRecordService)
 {
     _salesRecordService = salesRecordService;
 }
Example #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;
 }
Example #5
0
 public SalesRecordsController(SalesRecordService salesRecordService)
 {
     this._salesRecordService = salesRecordService;
 }
Example #6
0
 public SalesRecordsController(SalesRecordService recordService)
 {
     _recordService = recordService;
 }
Example #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;
 }
 public SalesRecordsController(SalesRecordService salesRecord)
 {
     _salesRecord = salesRecord;
 }
 public SalesRecordsController(SalesContext context, SalesRecordService salesRecordService, SellerService sellerService)
 {
     _context            = context;
     _salesRecordService = salesRecordService;
     _sellerService      = sellerService;
 }
Example #13
0
 public SalesRecordsController(SalesRecordService salesRecordsServices)
 {
     this.salesRecordsServices = salesRecordsServices;
 }
 public SalesRecordsController(SalesRecordService srservice)
 {
     _srservice = srservice;
 }
Example #15
0
 public SalesRecordsController(SalesRecordService recordServices)
 {
     _recordServices = recordServices;
 }