public ActionResult EditAuthor(int?id) { AuthorModel authobj = new AuthorModel(); authobj = db.GetAuthorById(id); return(View(authobj)); }