public HttpResponseMessage AddBookToLibrary([FromBody] SingleStringParam bookId) { string loggedInUserId = RequestContext.Principal.Identity.GetUserId(); try { _bookService.AddBookToLibrary(loggedInUserId, new Guid(bookId.Param)); return(new HttpResponseMessage(HttpStatusCode.OK)); } catch (Exception e) { _logger.Error($"BooksController/AddBookToLibrary Message={e.Message}"); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.InternalServerError, new { Message = e.Message }); return(response); } }