Esempio n. 1
0
        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));
        }