Esempio n. 1
0
        public ActionResult GetLibraryFolders([FromHeader] string xAuthToken, string customerId, string libraryName)
        {
            var requestData = new GetLibraryFoldersRequestData()
            {
                CustomerId  = customerId,
                LibraryName = libraryName
            };

            try
            {
                var foldersResult = _foldersService.GetLibraryFolders(xAuthToken, requestData);

                if (foldersResult == null)
                {
                    return(NoContent());
                }

                return(Ok(foldersResult.Data));
            }
            catch (Exception exc)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }