/// <summary> /// Slouzi k zobrazeni volnych mist /// </summary> /// <param name="IdDate"></param> /// <param name="IdFilm"></param> /// <returns></returns> public List <Places> GetSeats(DateTime IdDate, int IdFilm) { List <Places> plac = new List <Places>(); int testNull = _cartFilmRepo.TestIfFirst(IdDate, IdFilm); if (testNull != 0) { plac = _placeRepo.CheckFreePlaces(plac, IdFilm, IdDate); } else { plac = _placeRepo.ShowAllSeats(IdFilm, IdDate); } return(plac); }