コード例 #1
0
 public ActionResult EditAuthor(AuthorModel Author)
 {
     if (Author != null)
     {
         this.IAuthorInfoDataProvider.Update(Author.GetEntity());
     }
     return RedirectToAction("Index");
 }
コード例 #2
0
        public ActionResult AddAuthor(AuthorModel Author)
        {
            AuthorInfo AuthorInfo = Author.GetEntity();

            this.IAuthorInfoDataProvider.Add(AuthorInfo);

            return RedirectToAction("Index");
        }