Пример #1
0
        public async Task <IActionResult> GetAll()
        {
            var customerTypes = await _customerTypeRepo.GetAllNoTracking().ToListAsync();

            var viewModels = AutoMapper.Mapper.Map <IEnumerable <CustomerTypeViewModel> >(customerTypes);

            return(Ok(viewModels));
        }