public HttpResponseMessage Create(string webUrl, Library newLibrary, string accessToken = "")
        {
            accessToken = GetAccessToken(accessToken);

            try
            {
                Common.Models.Web libraryWebModel = _provisioningService.CreateClauseLibraryWeb(webUrl, newLibrary.Name, accessToken);

                Library library = new Library
                {
                    LibraryId   = new Guid(libraryWebModel.Id),
                    TenantId    = newLibrary.TenantId,
                    Name        = newLibrary.Name,
                    Description = newLibrary.Description,
                    HostWebUrl  = webUrl
                };

                //Create Library in Database
                _loginSettingsService.Add(library);
                _loginSettingsService.Save();

                return(new HttpResponseMessage(HttpStatusCode.OK)
                {
                    Content = new StringContent(library.LibraryId.ToString())
                });
            }
            catch (Exception e)
            {
                return(new HttpResponseMessage(HttpStatusCode.BadRequest)
                {
                    ReasonPhrase = e.Message
                });
            }
        }