Exemple #1
0
        public async Task <IActionResult> Get()
        {
            var categories = await _authorManager.GetAuthorList();

            if (categories != null)
            {
                return(StatusCode((int)HttpStatusCode.OK, categories));
            }
            else
            {
                return(StatusCode((int)HttpStatusCode.NotFound));
            }
        }