public IHttpActionResult DeleteAuthor(Int32 id)
 {
     try
     {
         repository.DeleteAuthor(id);
         return(Ok());
     }
     catch (Exception exception)
     {
         return(BadRequest(exception.Message));
     }
 }
 public IHttpActionResult DeleteAuthor(Int32 id)
 {
     repository.DeleteAuthor(id);
     return(Ok());
 }