public IActionResult GetCustomer(int customerId) { var customer = _customerInfoRepository.GetCustomer(customerId); if (customer == null) { return(StatusCode(500, "The customer is null and void, so i'm sorry, but we don't have this customer in the database")); } // var customerResult = Mapper.Map<CustomerDto>(customer); return(Ok(customer)); }