Пример #1
0
        public ActionResult TakeTest(string SubjectName)
        {
            string user   = Session["user"].ToString();
            string result = blayer_ob.CheckStatus(user);

            if (result == "Success")
            {
                blayer_ob.SetStatus(user);
                TempData["SubjectName"] = SubjectName;
                TempData.Keep();
                return(RedirectToAction("Questions"));
            }
            else
            {
                ViewBag.Message = result;
            }
            return(View());
        }