public IHttpActionResult Get(string title) { var episode = _episodeRepository.GetByTitle(title); if (episode == null) { return(NotFound()); } return(Ok(episode)); }
public ActionResult Find(vmSearch vm) { var results = !string.IsNullOrEmpty(vm.SearchTerm) ? _episodeRepository.GetByTitle(vm.SearchTerm) : _episodeRepository.GetAll(); return(PartialView("_gridResultsPanel", results)); }