コード例 #1
0
 public Author GetAuthor(int id)
 {
     return(authors.GetById(id));
 }
コード例 #2
0
        // GET: Author/Edit/5
        public ActionResult Edit(int id)
        {
            var model = mapper.Map <Author, AuthorViewModel>(authorLogic.GetById(id));

            return(View(model));
        }