public IEnumerable <Movie> GetMultiple(int start, int count) { if (count < 1) { Logger.Logger.LogError("Attempt to get negative amount of entities (Movie)."); return(new List <Movie>(0)); } else if (start > _movieCount) { Logger.Logger.LogError("Start index is out of range (MovieLogic.GetMultiple)."); return(new List <Movie>(0)); } else if (_movieCount < start + count) { count = _movieCount - start + 1; if (count < 1) { Logger.Logger.LogError("Attempt to get entities (Movie) with start index >= elements amount."); } return(_movieDao.GetMultiple(start, count)); } else { return(_movieDao.GetMultiple(start, count)); } }