public async Task <IHttpActionResult> GetAllMovies([FromUri] SearchMovie modelSearchMovie) { var result = await _movieListService.GetAllMoviesAsync(modelSearchMovie); MovieListVM movieListVM = Mapper.Map <MovieListVM>(result); return(Ok(movieListVM)); }
//public IActionResult Index() //{ // return View(); //} public ViewResult List() { //return View(_movieRepository.AllMovies); MovieListVM movieListVM = new MovieListVM() { Movies = _movieRepository.AllMovies, SelectedCategoryName = _categoryRepository.AllCategories.ToList()[0].Name }; return(View(movieListVM)); }