Пример #1
0
        public async Task <IActionResult> Details(TPrimaryKey id)
        {
            var dto = await _banService.GetAsync(id);

            var viewModel = _mapper.Map <BanDetailsViewModel>(dto);

            return(View(viewModel));
        }