Пример #1
0
        public async Task <ActionResult <CustomerAPIModel> > GetCustomerById(string id)
        {
            var customer = await _customersService.GetCustomerById(id);

            var customerAPIModel = _mapper.Map <Customers, CustomerAPIModel>(customer);

            return(Ok(customerAPIModel));
        }
Пример #2
0
 public CustomerDto Get(Guid id)
 {
     return(customersService.GetCustomerById(id));
 }