Exemple #1
0
 public CiuchAppBaseController(ICrudService <T> serviceProvider, ILogger <T> logger, ICiuchAppSettings settings, IDropdownServices dropdownServices)
 {
     _service         = serviceProvider;
     _logger          = logger;
     _settings        = settings;
     _dropdownService = dropdownServices;
 }
 public PiecesController(
     ICrudService <Piece> serviceProvider,
     ILogger <Piece> logger,
     ICiuchAppSettings settings,
     IDropdownServices dropdownServices) : base(
         serviceProvider,
         logger,
         settings,
         dropdownServices)
 {
 }
Exemple #3
0
 public BusinessTripsController(
     ICrudService <BusinessTrip> serviceProvider,
     ILogger <BusinessTrip> logger, ICiuchAppSettings settings,
     IDropdownServices dropdownServices) :
     base(
         serviceProvider,
         logger,
         settings,
         dropdownServices)
 {
 }
 public CiuchAppDrodownBaseController(
     ICrudService <T> serviceProvider,
     ILogger <T> logger,
     ICiuchAppSettings settings,
     IDropdownServices dropdownServices,
     string indexView  = @"/Views/Dropdowns/Index.cshtml",
     string editView   = @"/Views/Dropdowns/Edit.cshtml",
     string createView = @"/Views/Dropdowns/Create.cshtml",
     string deleteView = @"/Views/Dropdowns/Delete.cshtml"
     ) : base(serviceProvider, logger, settings, dropdownServices)
 {
     IndexView  = indexView;
     EditView   = editView;
     CreateView = createView;
     DeleteView = deleteView;
 }
 public ComponentsController(ICrudService <Component> serviceProvider, ILogger <Component> logger, ICiuchAppSettings settings, IDropdownServices dropdownServices) : base(serviceProvider, logger, settings, dropdownServices)
 {
 }
 public CountryOfOriginsController(ICrudService <CountryOfOrigin> serviceProvider, ILogger <CountryOfOrigin> logger, ICiuchAppSettings settings, IDropdownServices dropdownServices) : base(serviceProvider, logger, settings, dropdownServices)
 {
 }
Exemple #7
0
 public ExcelController(IHostingEnvironment env, ICrudService <Piece> service, ICiuchAppSettings settings)
 {
     _env      = env;
     _settings = settings;
     _service  = service;
 }
 public TopCategoriesController(ICrudService <TopCategory> serviceProvider, ILogger <TopCategory> logger, ICiuchAppSettings settings, IDropdownServices dropdownServices) : base(serviceProvider, logger, settings, dropdownServices)
 {
 }
 public CurrenciesController(ICrudService <Currency> serviceProvider, ILogger <Currency> logger, ICiuchAppSettings settings, IDropdownServices dropdownServices) : base(serviceProvider, logger, settings, dropdownServices)
 {
 }
Exemple #10
0
 public GroupsController(ICrudService <Group> serviceProvider, ILogger <Group> logger, ICiuchAppSettings settings, IDropdownServices dropdownServices, ICrudService <MainCategory> mainCategoryService) : base(
         serviceProvider,
         logger,
         settings,
         dropdownServices,
         editView: @"/Views/Dropdowns/Group/Edit.cshtml")
 {
     this._mainCategoryService = mainCategoryService;
 }
Exemple #11
0
 public ImageApiController(ApplicationDbContext context, IHostingEnvironment env, ICiuchAppSettings settings)
 {
     _context     = context;
     _environment = env;
     _settings    = settings;
 }
 public SuppliersController(ICrudService <Supplier> serviceProvider, ILogger <Supplier> logger, ICiuchAppSettings settings, IDropdownServices dropdownServices) : base(serviceProvider, logger, settings, dropdownServices)
 {
 }
Exemple #13
0
 public ApiClient(ICiuchAppSettings settings)
 {
     apiBaseUrl         = @"https://api.ciuchapp.lukaszsadlocha.pl/";
     client             = new HttpClient();
     client.BaseAddress = new Uri(apiBaseUrl);
 }