public async Task <IActionResult> AuthorDetail(int id) { Author auth = await context.Authors.FirstOrDefaultAsync(art => art.AuthorId == id); AuthorViewModel model = ViewModelFactory.AuthorDetail(auth); return(View("AuthorEditor", model)); }