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