Example #1
0
        // GET: Engine
        public async Task <ActionResult> Index()
        {
            var listDTOEngine = await _engineService.GetAllAsync();

            var listViewEngine = _mapper.Map <IEnumerable <EngineView> >(listDTOEngine);

            return(View(listViewEngine));
        }