public async Task <ActionResult> Put([FromBody] ChangeAuthorNameBindingModel model) { if (!this.ModelState.IsValid) { return(this.BadRequest()); } await authorService.ChangeNameAsync(model.OldName, model.NewName); return(this.Ok()); }