示例#1
0
        public async Task <IActionResult> Put(string id, [FromBody] Customer item)
        {
            var c = await cmd.UpdateAsync(item);

            var e = new Envelope <Customer>(c, (int)HttpStatusCode.OK);

            return(Ok(e));
        }