public async Task <IHttpActionResult> GetBooks(int userId)
 {
     try
     {
         return(Ok(await userObj.getAllbooksforUser(userId)));
     }
     catch (Exception ex)
     {
         return(Content(HttpStatusCode.NotFound, ex.Message));
     }
 }