public SecurityController(UserManager <AppIdentityUser> userManager, SignInManager <AppIdentityUser> signInManager, ToursDbContext toursDbContext)
        {
            _toursDbContext = toursDbContext;

            _userManager = userManager;

            _signInManager = signInManager;
        }
Exemplo n.º 2
0
        // When a new homecontroller is created, pass in the needed variables
        public HomeController(ILogger <HomeController> logger, ITourRepository repository, ToursDbContext context)
        {
            _logger     = logger;
            _repository = repository;
            _context    = context;



            // Used to generate times
            DateTime currentDate = DateTime.Now;


            int objectsCreated = 0;

            // This will loop through 7 days and make appropiate timeslots over the 12 hours starting at 8am and the the last timeslot at 7pm
            for (int days = 0; days < 7; days++)
            {
                int    startTime = 8;
                string timetype  = "AM";
                for (int hours = 0; hours < 12; hours++)
                {
                    Time newTime = new Time();
                    newTime.Date          = currentDate.AddDays(days).ToString("dd/MM/yyyy");
                    newTime.ScheduledTime = (startTime + hours).ToString() + ":00 " + timetype;
                    // Use to swap from AM to PM
                    if ((startTime + hours) == 12)
                    {
                        timetype = "PM";
                        newTime.ScheduledTime = (startTime + hours).ToString() + ":00 " + timetype;
                        startTime             = 0 - hours;
                    }
                    newTime.TimeID = objectsCreated;
                    objectsCreated++;
                    times.Add(newTime);
                }
            }
        }
 public VulkanDescriptionsController(ToursDbContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public FireMountainDescriptionsController(ToursDbContext context)
 {
     _context = context;
 }
 public BilgehDescriptionsController(ToursDbContext context)
 {
     _context = context;
 }
Exemplo n.º 6
0
 public BronNaftalansController(ToursDbContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public MainPagesController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }
 public HotelListsController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }
Exemplo n.º 9
0
 public HomeSecondController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 10
0
 public AzeTitleSubtitlesController(ToursDbContext context)
 {
     _context = context;
 }
Exemplo n.º 11
0
 public BakuJarasController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }
 public GroupToursController(ToursDbContext context)
 {
     _context = context;
 }
 public AzerbaijanController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 14
0
 public FestivalsController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }
Exemplo n.º 15
0
 public ContactController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 16
0
 public BronHotelsController(ToursDbContext context)
 {
     _context = context;
 }
 public BronLankaransController(ToursDbContext context)
 {
     _context = context;
 }
 public CompliancesController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }
 public InsuaranceDescriptionsController(ToursDbContext context)
 {
     _context = context;
 }
 public TransportsController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }
 public AzerbaijansController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }
Exemplo n.º 22
0
 public HealthController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 23
0
 public BronController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 24
0
 public GoyGolDescriptionsController(ToursDbContext context)
 {
     _context = context;
 }
Exemplo n.º 25
0
 public EventController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 26
0
 public OnlinePaymentController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 27
0
 public QabalaDescriptionsController(ToursDbContext context)
 {
     _context = context;
 }
 public NaftalanDescriptionsController(ToursDbContext context)
 {
     _context = context;
 }
Exemplo n.º 29
0
 public AboutController(ToursDbContext toursDbContext)
 {
     _toursDbContext = toursDbContext;
 }
Exemplo n.º 30
0
 public EmergenciesController(ToursDbContext context, IHostingEnvironment hostingEnvironment)
 {
     this.hostingEnvironment = hostingEnvironment;
     _context = context;
 }