public async Task <IActionResult> Index(string navigate)
        {
            if (navigate == "< Saptamana precedenta")
            {
                _currentDate.ReferenceDate = _currentDate.ReferenceDate.AddDays(-7);

                WeeklyAppointments weeklyAppointmentsBefore = WeeklyAppointmentsConverter.AppointmentsForFrontEnd(
                    await _weeklyAppointmentsRepository.GetWeeklyAppointments(_currentDate.ReferenceDate), _patientRepository);

                return(View(weeklyAppointmentsBefore));
            }
            else if (navigate == "Saptamana urmatoare >")
            {
                _currentDate.ReferenceDate = _currentDate.ReferenceDate.AddDays(7);

                WeeklyAppointments weeklyAppointmentsAfter = WeeklyAppointmentsConverter.AppointmentsForFrontEnd(
                    await _weeklyAppointmentsRepository.GetWeeklyAppointments(_currentDate.ReferenceDate), _patientRepository);

                return(View(weeklyAppointmentsAfter));
            }

            _currentDate.ReferenceDate = DateTime.Now;

            WeeklyAppointments weeklyAppointments = WeeklyAppointmentsConverter.AppointmentsForFrontEnd(
                await _weeklyAppointmentsRepository.GetWeeklyAppointments(_currentDate.ReferenceDate), _patientRepository);

            return(View(weeklyAppointments));
        }
        public async Task <IActionResult> Index()
        {
            WeeklyAppointments weeklyAppointments = WeeklyAppointmentsConverter.AppointmentsForFrontEnd(
                await _weeklyAppointmentsRepository.GetWeeklyAppointments(_currentDate.ReferenceDate), _patientRepository);

            return(View(weeklyAppointments));
        }