public async Task <IActionResult> PutAuthor(int id, AuthorMODEL model) { if (id != model.IdAuthor) { return(BadRequest()); } var resultProcess = await authorBLL.UpdateAsync(model); if (!resultProcess.IsApproved) { return(BadRequest(resultProcess.ShortMessage)); } else { return(Ok(resultProcess.ObjectResult)); } }