Example #1
0
        public ActionResult RequestBook(RequestBookViewModel registerModel)
        {
            int x = bookRepo.InsertRequestBook(registerModel, Convert.ToInt32(Session["id"]));

            if (x == 1)
            {
                return(RedirectToAction("AllBookDetails"));
            }
            else
            {
                return(Content("Faild"));
            }
        }