/// <summary> /// Receives the search result request and goes to th database looking for the information. /// </summary> /// <param name="request">A request model that contains the search parameters.</param> /// <returns></returns> public ActionResult SearchResult(string genre, int MinimumLength, int MaximumLength /*FilmSearch request */) { /* Call the DAL and pass the values as a model back to the View */ IList <Film> films = _db.GetFilmsBetween(genre, MinimumLength, MaximumLength); //FindActors(lastName); //SearchForCustomers(search, sortBy); FilmViewModel vm = new FilmViewModel(); vm.Films = _db.GetFilmsBetween(genre, MinimumLength, MaximumLength);//.Actors = _db.FindActors(lastName); return(View("Index", vm)); }
public IActionResult SearchResult(string Genre, int MinLength, int MaxLength) { /* Call the DAL and pass the values as a model back to the View */ IList <Film> films = filmDAO.GetFilmsBetween(Genre, MinLength, MaxLength); return(View(films)); }
/// <summary> /// Receives the search result request and goes to th database looking for the information. /// </summary> /// <param name="request">A request model that contains the search parameters.</param> /// <returns></returns> public ActionResult SearchResults(FilmSearchModel model) { IList <Film> films = filmDAO.GetFilmsBetween(model.Genre, model.MinLength, model.MaxLength); /* Call the DAL and pass the values as a model back to the View */ return(View(films)); }
/// <summary> /// Receives the search result request and goes to th database looking for the information. /// </summary> /// <param name="request">A request model that contains the search parameters.</param> /// <returns></returns> public ActionResult SearchResult(FilmSearch filmSearch) { /* Call the DAL and pass the values as a model back to the View */ IList <Film> films = filmDAO.GetFilmsBetween(filmSearch.Genre, filmSearch.MinimumLength, filmSearch.MaximumLength); return(View(films)); }
/// <summary> /// Receives the search result request and goes to th database looking for the information. /// </summary> /// <param name="request">A request model that contains the search parameters.</param> /// <returns></returns> public ActionResult SearchResult(FilmSearchModel model) { IList <Film> films = filmDAO.GetFilmsBetween(model.Genre, model.MinLength, model.MaxLength); return(View(films)); }