public IEnumerable <Story> GetAllTestStories() { List <Story> stories = new List <Story>(); try { stories = _repository.GetAll().ToList(); } catch (Exception ex) { _logger.LogError(ex.Message); } return(stories); }
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)); }
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)); }
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)); }