public AdvertisementController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IStringLocalizer <AdvertisementController> localizer) { _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _localizer = localizer; // initialize the Constructor for the ProductsController ProductsViewModel = new ProductsViewModel() { CategoryGroups = _colibriDbContext.CategoryGroups.ToList(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList(), Products = new Models.Products() }; // Advertisement ViewModel AdvertisementViewModel = new AdvertisementViewModel { // initialize Products = new List <Products>(), Users = new List <ApplicationUser>() }; // ProductsRatingModel ProductsRatingViewModel = new ProductsRatingViewModel() { Products = new List <ProductsRatings>(), Product = new Models.ProductsRatings(), Users = new List <ApplicationUser>() }; }
// CTOR: use the ICategoryData Service //public HomeController(ICategoryTypesData categoryData, IEmailSender emailSender) public HomeController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IStringLocalizer <HomeController> localizer, IEmailSender emailSender) { // incoming Category Object will be saved into the private Field //_categoryData = categoryData; _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _localizer = localizer; _emailSender = emailSender; // CTOR initialize HomeIndexViewModel = new HomeIndexViewModel { CategoryGroups = _colibriDbContext.CategoryGroups.ToList(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList(), SpecialTags = _colibriDbContext.SpecialTags.ToList(), Users = _colibriDbContext.ApplicationUsers.ToList() //Users = new List<ApplicationUser>() }; searchVM = new SearchViewModel() { Products = new Models.Products(), UserServices = new Models.UserServices(), //CategoryTypes = new Models.CategoryTypes() CategoryTypesList = _colibriDbContext.CategoryTypes.ToList() }; }
// Constructor public SearchesController(ColibriDbContext colibriDbContext, IStringLocalizer <SearchesController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; // ViewModel UserSearchesViewModel = new UserSearchesViewModel() { SearchEntry = new Models.SearchEntry(), // Standardmässig keine Einschränkung auf Datum dateAll = true, date30Days = false, dateToday = false, // Standardmässig keine Einschränkung auf Ergebnis resAll = true, resSuccess = false, resPartSuccess = false, resNoSuccess = false, // Standardmässig keine Einschränkunf auf Angebot oder Nachfrage searchAll = true, searchOffer = false, searchRequest = false }; }
public ServicesController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IStringLocalizer <ServicesController> localizer) { _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _localizer = localizer; // initialize the Constructor with the UserServicesViewModel UserServicesViewModel = new UserServicesViewModel() { CategoryGroups = _colibriDbContext.CategoryGroups.ToList(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList(), UserServices = new List <UserServices>(), Users = new List <ApplicationUser>() }; // initialize the Constructor with the UserServicesAddToEntityViewModel UserServicesAddToEntityViewModel = new UserServicesAddToEntityViewModel() { CategoryGroups = _colibriDbContext.CategoryGroups.ToList(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList(), UserServices = new Models.UserServices() }; }
public AppointmentsController(ColibriDbContext colibriDbContext, IStringLocalizer <AppointmentsController> localizer, ILogger <AppointmentsController> logger) { _colibriDbContext = colibriDbContext; _localizer = localizer; _logger = logger; }
public UserSubscribeModel( ColibriDbContext colibriDbContext, ILogger <RegisterModel> logger, IEmailSender emailSender) { _colibriDbContext = colibriDbContext; _logger = logger; _emailSender = emailSender; }
// Constructor public ArchiveController(ColibriDbContext colibriDbContext, IStringLocalizer <ArchiveController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; // ViewModel ArchiveViewModel = new ArchiveViewModel() { ArchiveEntry = new ArchiveEntry() }; }
public ApplicationUserRatingController(ColibriDbContext colibriDbContext, IStringLocalizer <ApplicationUserRatingController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; ApplicationUserRatingViewModel = new ApplicationUserRatingViewModel() { ApplicationUsers = new List <ApplicationUserRatings>(), ApplicationUser = new Models.ApplicationUserRatings() }; }
public CategoryTypesController(ColibriDbContext colibriDbContext, IStringLocalizer <CategoryTypesController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; // Search ViewModel SearchViewModel = new SearchViewModel() { Products = new Models.Products(), UserServices = new Models.UserServices(), PLZ = new string("") }; }
public UserServicesRatingController(ColibriDbContext colibriDbContext, IStringLocalizer <UserServicesRatingController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; UserServicesRatingViewModel = new UserServicesRatingViewModel() { UserServices = new List <UserServicesRatings>(), UserServiceRating = new Models.UserServicesRatings(), Users = new List <ApplicationUser>() }; }
public ProductsRatingController(ColibriDbContext colibriDbContext, IStringLocalizer <ProductsRatingController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; ProductsRatingViewModel = new ProductsRatingViewModel() { Products = new List <ProductsRatings>(), Product = new Models.ProductsRatings(), Users = new List <ApplicationUser>() }; }
public AppointmentsController(ColibriDbContext colibriDbContext, IStringLocalizer <AppointmentsController> localizer, ILogger <AppointmentsController> logger) { _colibriDbContext = colibriDbContext; _localizer = localizer; _logger = logger; // only if the User is AdminUser -> get ID AppointmentViewModel = new AppointmentViewModel { // initialize Appointments = new List <Models.Appointments>() }; }
public SchedulingController(ColibriDbContext colibriDbContext, IEmailSender emailSender, IStringLocalizer <SchedulingController> localizer) { _colibriDbContext = colibriDbContext; _emailSender = emailSender; _localizer = localizer; // initialize the SchedulingViewModel SchedulingViewModel = new SchedulingViewModel() { Products = new List <Models.Products>(), UserServices = new List <Models.UserServices>() }; }
// Constructor public SearchOffersController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IStringLocalizer <SearchOffersController> localizer) { _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _localizer = localizer; // Search ViewModel SearchViewModel = new SearchViewModel() { Products = new Models.Products(), UserServices = new Models.UserServices() }; }
public SubscriberController(ColibriDbContext colibriDbContext, IStringLocalizer <SubscriberController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; SubscriberViewModel = new SubscriberViewModel { //MyMessage = new List<string>() //Notifications = new List<Notifications>() Notifications = new Notifications(), ApplicationUserCategoryTypesSubscriber = new ApplicationUserCategoryTypesSubscriber(), NotificationsEnumerable = new List <Notifications>(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList() }; }
// Constructor public AdvertisementRequestController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IStringLocalizer <AdvertisementRequestController> localizer) { _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _localizer = localizer; // Advertisement ViewModel AdvertisementViewModel = new AdvertisementViewModel() { // initialize CategoryGroups = _colibriDbContext.CategoryGroups.ToList(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList(), Product = new Products(), UserService = new UserServices(), }; }
// CTOR // get the Data from the DB public ApplicationUserController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IEmailSender emailSender, IStringLocalizer <ApplicationUserController> localizer) { _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _emailSender = emailSender; _localizer = localizer; ApplicationUserViewModel = new ApplicationUserViewModel() { ApplicationUser = new Models.ApplicationUser(), ApplicationUsers = new List <ApplicationUser>() }; ApplicationUserRatingViewModel = new ApplicationUserRatingViewModel() { ApplicationUsers = new List <ApplicationUserRatings>(), ApplicationUser = new Models.ApplicationUserRatings() }; }
// CTOR: use the ICategoryData Service //public HomeController(ICategoryTypesData categoryData, IEmailSender emailSender) public AdminDashboardController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IStringLocalizer <AdvertisementController> localizer, IEmailSender emailSender) { // incoming Category Object will be saved into the private Field //_categoryData = categoryData; _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _localizer = localizer; _emailSender = emailSender; // CTOR initialize HomeIndexViewModel = new HomeIndexViewModel { CategoryGroups = _colibriDbContext.CategoryGroups.ToList(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList(), SpecialTags = _colibriDbContext.SpecialTags.ToList(), Users = _colibriDbContext.ApplicationUsers.ToList() //Users = new List<ApplicationUser>() }; }
public ProductsController(ColibriDbContext colibriDbContext, HostingEnvironment hostingEnvironment, IStringLocalizer <ProductsController> localizer) { _colibriDbContext = colibriDbContext; _hostingEnvironment = hostingEnvironment; _localizer = localizer; // initialize the Constructor for the ProductsController ProductsViewModel = new ProductsViewModel() { CategoryGroups = _colibriDbContext.CategoryGroups.ToList(), CategoryTypes = _colibriDbContext.CategoryTypes.ToList(), Products = new Models.Products() }; // extra for the Index View with the Pagination ProductsListViewModel = new ProductsListViewModel() { Products = new List <Products>(), Users = new List <ApplicationUser>() }; }
public SpecialTagsController(ColibriDbContext colibriDbContext) { _colibriDbContext = colibriDbContext; }
public SqlCategoryTypesData(ColibriDbContext context) { _context = context; }
public AdminUsersController(ColibriDbContext colibriDbContext, IStringLocalizer <AdminUsersController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; }
//public ProductsHomeController(IColibriRepository repository) public ProductsHomeController(ColibriDbContext colibriDbContext, IStringLocalizer <ProductsHomeController> localizer) { //_repository = repository; _colibriDbContext = colibriDbContext; _localizer = localizer; }
public UserNameViewComponent(ColibriDbContext colibriDbContext) { _colibriDbContext = colibriDbContext; }
public UserServicesHomeController(ColibriDbContext colibriDbContext, IStringLocalizer <UserServicesHomeController> localizer) { //_repository = repository; _colibriDbContext = colibriDbContext; _localizer = localizer; }
public CustomerUsersController(ColibriDbContext colibriDbContext, IStringLocalizer <CustomerUsersController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; }
public CategoryGroupsController(ColibriDbContext colibriDbContext, IStringLocalizer <CategoryGroupsController> localizer) { _colibriDbContext = colibriDbContext; _localizer = localizer; }