public async Task <CustomerToReturnVM> GetCustomerById(int id) { CustomerToReturnVM customerToReturnVM = new CustomerToReturnVM(); CustomerDomainModel customerDomainModel = await customerBusiness.GetCustomerById(id); AutoMapper.Mapper.Map(customerDomainModel, customerToReturnVM); return(customerToReturnVM); }
public ActionResult <IEnumerable <string> > GetCustomerById(int id) { var customers = _business.GetCustomerById(id); return(new OkObjectResult(customers)); }