public Result GetDRMEnabledShows(ShowsList showsList) { var result = new Result(); if (this._validator.Validate(showsList)) { var records = showsList.payload.FindAll(item => item.drm == true && item.episodeCount > 0); result.response = records.Select(item => new Response() { image = item.image.showImage, slug = item.slug, title = item.title }).ToList(); } return(result); }
public ActionResult <Result> Post([FromBody] ShowsList showsList) { return(this._showsFilter.GetDRMEnabledShows(showsList)); }