public IHttpActionResult AddAuthor(String fullName) { try { repository.AddAuthor(fullName); return(Ok()); } catch (Exception exception) { return(BadRequest(exception.Message)); } }
public IHttpActionResult AddAuthor(String fullName) { repository.AddAuthor(fullName); return(Ok()); }