public ActionResult EditAuthor(AuthorModel Author) { if (Author != null) { this.IAuthorInfoDataProvider.Update(Author.GetEntity()); } return RedirectToAction("Index"); }
public ActionResult AddAuthor(AuthorModel Author) { AuthorInfo AuthorInfo = Author.GetEntity(); this.IAuthorInfoDataProvider.Add(AuthorInfo); return RedirectToAction("Index"); }