public async Task <IActionResult> GetCustomer([FromRoute] Guid id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var customer = await _customerApplicationService.GetById(id); if (customer == null) { return(NotFound()); } return(Ok(customer)); }