Exemplo n.º 1
0
        public async Task <ActionResult> Put([FromBody] CustomerModel customer, CancellationToken cancellation)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            await _store.UpdateCustomer(customer, cancellation);

            return(Ok());
        }