Esempio n. 1
0
        public ActionResult <JsonResult> AddAuthor([FromBody] Author model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            authorService.AddBookAuthor(model);

            return(Ok("Author succsesfully added"));
        }