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