Example #1
0
        public IEnumerable <Story> GetAllTestStories()
        {
            List <Story> stories = new List <Story>();

            try
            {
                stories = _repository.GetAll().ToList();
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message);
            }

            return(stories);
        }
Example #2
0
        public IPagedList <StoryModel> GetAll(string category, string subcategory, string rating, string market, string events, string search, DateTime fromdate, DateTime todate, int page, int pageSize, string order = "", string asc = "")
        {
            StoryRepository _story = new StoryRepository();

            return(_story.GetAll(category, subcategory, rating, market, events, search, fromdate, todate, page, pageSize, order, asc));
        }
Example #3
0
        public IList <StoryModel> GetAll(string category, string subcategory, string rating, string market, string events, string search, string order = "", string asc = "")
        {
            StoryRepository _story = new StoryRepository();

            return(_story.GetAll(category, subcategory, rating, market, events, search, order, asc));
        }
Example #4
0
        public IPagedList <StoryModel> GetAll(string stars_id, int page, int pageSize, string order = "", string asc = "")
        {
            StoryRepository _story = new StoryRepository();

            return(_story.GetAll(stars_id, page, pageSize, order, asc));
        }