public ActionResult Login(ShoppingCartModel cartModel) { string UserID = cartModel.checkUser(cartModel.Email_Id, cartModel.password); if (!(UserID == null)) { Session["USERNAME"] = cartModel.Email_Id; Session["USERID"] = UserID; return(View("Success", cartModel)); } return(View()); }