Exemple #1
0
        public async Task <IActionResult> GetAuthorDetailsAsync(string path)
        {
            if (string.IsNullOrWhiteSpace(path))
            {
                return(BadRequest("Path is empty."));
            }

            try
            {
                return(Ok(await _authorProvider.GetAuthorDetailsAsync(path)));
            }
            catch (Exception e)
            {
                return(BadRequest(e));
            }
        }