Пример #1
0
        public IActionResult GetCustomerTypeById(int id)
        {
            var customerType = _customerTypeService.GetCustomerTypeById(id);

            if (customerType == null)
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <CustomerTypeDto>(customerType)));
        }