public IHttpActionResult Get(string search, string select) { if (select == "Title") { return(Ok(_dvdRepository.GetName(search))); } if (select == "Director") { return(Ok(_dvdRepository.GetDirector(search))); } if (select == "year") { return(Ok(_dvdRepository.GetYear(search))); } if (select == "Rating") { return(Ok(_dvdRepository.GetRating(search))); } else { return(NotFound()); } }