public async Task <IActionResult> UpdateAsync( [Range(1, int.MaxValue)] int id, ContactUpdateRequestModel model, CancellationToken cancellationToken) { if (id != model.Id) { return(BadRequest(new { errorMessage = "IDs do not match." })); } var contactModel = Mapper.Map <ContactModel>(model); await _contactFacade.UpdateAsync(contactModel, cancellationToken); return(NoContent()); }