public ActionResult SellBook(BookDetails bookDetails) { int x = bookRepo.InsertBook(bookDetails, Convert.ToInt32(Session["Id"])); if (x == 1) { return(RedirectToAction("AllBookDetails")); } else { return(Content("Faild")); } }