public ActionResult <JsonResult> AddAuthor([FromBody] Author model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } authorService.AddBookAuthor(model); return(Ok("Author succsesfully added")); }
public ActionResult <JsonResult> AddAuthor([FromBody] Author model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } authorService.AddBookAuthor(model); return(Ok("Author succsesfully added")); }