public GetBreakClinicRegistrationsPageInformationCommandAnswer GetBreakClinicRegistrationsPageInformation(
            GetBreakClinicRegistrationsPageInformationCommand command)
        {
            var user = this._tokenManager.GetUserByToken(command.Token);
            var currentClinicId = this._clinicManager.GetClinicByUser(user).Id;

            var resrvations = this._reservationRepository.GetModels();
            var now = DateTime.Now.Date;

            var table = resrvations
                .Where(model => model.Status == ReservationStatus.Opened)
                .Where(model => model.EmptyPlaceByTypeStatistic.EmptyPlaceStatistic.Date >= now)
                .Where(model=>model.ClinicId == currentClinicId)
                .Select(model => new ClinicBreakRegistrationTableItem
                {
                    SectionProfile = model.EmptyPlaceByTypeStatistic.EmptyPlaceStatistic.HospitalSectionProfile.Name,
                    ReservationId = model.Id,
                    Haspital = model.EmptyPlaceByTypeStatistic.EmptyPlaceStatistic.HospitalSectionProfile.Hospital.Name,
                    PatientCode = model.Patient.Code,
                    PatientFirstName = model.Patient.FirstName,
                    PatientLastName = model.Patient.LastName,
                    ReservationDate = model.EmptyPlaceByTypeStatistic.EmptyPlaceStatistic.Date,
                    Diagnosis = model.Diagnosis,
                })
                .ToList();

            table.ForEach(item => item.ReservationFormattedDate = item.ReservationDate.ToCorrectDateString());

            return new GetBreakClinicRegistrationsPageInformationCommandAnswer
            {
                Table= table,
                Token = (Guid)command.Token,
                ShowModalWindow = command.ShowModalWindow
            };
        }
 public ActionResult Index(GetBreakClinicRegistrationsPageInformationCommand command)
 {
     var answer = _clinicRegistrationsService.GetBreakClinicRegistrationsPageInformation(command);
     return View(answer);
 }