Esempio n. 1
0
        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));
        }