public async Task <IActionResult> GetAuthor(int id)
        {
            var result = await _authorBusiness.GetAuthor(id);

            if (result != null)
            {
                return(Ok(result));
            }
            return(NotFound());
        }
示例#2
0
        public async Task <IActionResult> Details(int id)
        {
            var result = await _authorBusiness.GetAuthor(id);

            return(View(result));
        }