Example #1
0
        public async Task <ActionResult> GetAllFolderPaths()
        {
            try
            {
                var data = _service.GetFolderPaths();
                return(Ok(data));
            }
            catch (Exception ex)
            {
                await _log.WriteErrorAsync("GoogleDriveController", nameof(GetAllFolderPaths), string.Empty, ex);

                return(StatusCode(500, ErrorResponse.Create(ex.Message)));
            }
        }