Пример #1
0
        public async Task <CustomerToReturnVM> GetCustomerById(int id)
        {
            CustomerToReturnVM  customerToReturnVM  = new CustomerToReturnVM();
            CustomerDomainModel customerDomainModel = await customerBusiness.GetCustomerById(id);

            AutoMapper.Mapper.Map(customerDomainModel, customerToReturnVM);
            return(customerToReturnVM);
        }
Пример #2
0
        public ActionResult <IEnumerable <string> > GetCustomerById(int id)
        {
            var customers = _business.GetCustomerById(id);

            return(new OkObjectResult(customers));
        }