public async Task <ActionResult <int> > Post(Author Author) { if (!ModelState.IsValid) { return(BadRequest()); } var response = await _service.AuthorCreate(Author); return(Ok(response)); }
public async Task <ActionResult <int> > Post(Author Author) { if (!ModelState.IsValid) { return(BadRequest()); } var response = await _service.AuthorCreate(Author); return(Ok(response)); }