Esempio n. 1
0
        public async Task <ActionResult <Customer> > CreateCustomer([FromBody] CustomerCreate model)
        {
            Customer result = await customerFacade.Create(model);

            return(CreatedAtAction(nameof(GetCustomer), new { id = result.Id }, result));
        }