public ActionResult Create(AuthorModel Authobj) { int i = db.SaveAuthors(Authobj); if (i > 0) { return(RedirectToAction("Index")); } else { return(View()); } }
public ActionResult Create(AuthorModel Authobj) { int i = db.SaveAuthors(Authobj); if (i > 0) { return(RedirectToAction("Index")); } else { return(View()); } }