public ActionResult Login(string uname, string pwd) { string result = blayer_ob.Login(uname, pwd); if (result == "Success") { Session["user"] = uname; return(RedirectToAction("UserPage")); } else { ViewBag.Message = result; } return(View()); }