Beispiel #1
0
        public IActionResult Get()
        {
            var objs   = movieCategoryService.GetAll().ToList();
            var result = mapper.Map <List <MovieCategoryResource> >(objs);

            return(new ObjectResult(result));
        }
Beispiel #2
0
        public ActionResult AddVideo()
        {
            CinemaModel cm = new CinemaModel();
            Movie       m  = new Movie();

            cm.Categories = From(_movieCategoryService.GetAll());
            cm.Movie      = m;
            return(View(cm));
        }