public async Task <ActionResult <bool> > Put(Author Author) { if (!ModelState.IsValid || Author.Id <= 0) { return(BadRequest()); } if (await _service.AuthorUpdate(Author)) { return(Ok(true)); } else { return(NotFound()); } }