// PUT /Api/v1/LogBooks/33
        public HttpResponseMessage Put([FromUri]int? logBookId, LogBookInput logBookInput)
        {
            if (ModelState.IsValid == false)
                return BadRequest(ModelState.FirstErrorMessage());

            var logBook = base.RavenSession.Load<LogBook>(logBookId);

            if (logBook == null)
                return NotFound();

            if (logBook.IsOwnedBy(base.User.Identity.Name) == false)
                return Forbidden();

            logBookInput.MapToInstance(logBook);

            var logBookView = logBook.MapTo<LogBookView>();

            return Ok(logBookView);
        }
        // POST /Api/v1/LogBooks
        public HttpResponseMessage Post(LogBookInput logBookInput)
        {
            if (ModelState.IsValid == false)
                return BadRequest(ModelState.FirstErrorMessage());

            var logBook = new LogBook() { OwnerId = base.User.Identity.Name };
            logBookInput.MapToInstance(logBook);

            base.RavenSession.Store(logBook);

            var logBookView = logBook.MapTo<LogBookView>();

            return Created(logBookView);
        }