public async Task <ActionResult <Author> > PostAuthor(AuthorPostModel authorPost) { Author author = _mapper.Map <Author>(authorPost); _context.Author.Add(author); bool IsSaveAuthor = await _authorServices.AddNewBook(author); if (IsSaveAuthor) { return(Ok(new { data = author, success = true })); } else { return(Ok(new { error_message = "Co loi khi luu tac gia" })); } }