Esempio n. 1
0
        public IActionResult Put(int id, [FromBody] ContactModel contact)
        {
            var response = _updateContactCommand.Execute(id, contact);

            return(CreateResult(response));
        }
 public async Task <IActionResult> UpdateContact([FromRoute] int id, [FromBody] Contact contact) =>
 await _updateContactCommand.Execute(id, contact);