Ejemplo n.º 1
0
        public ActionResult Listen(Guid id)
        {
            ViewData["ID"] = id;
            int?ItemID = _item.GetEditItemID(id);

            if (ItemID == 1)
            {
                return(View("SAS"));
            }
            if (ItemID == 5)
            {
                return(View("Complex"));
            }

            if (ItemID == 6)
            {
                return(View("BankedCloze"));
            }
            if (ItemID == 7)
            {
                return(View("MultipleChoice"));
            }
            if (ItemID == 8)
            {
                return(View("Cloze"));
            }
            else
            {
                return(View("Listen"));
            }
        }
Ejemplo n.º 2
0
        public ActionResult EditListen(Guid id)
        {
            var UserID  = (from m in db.CEDTS_AssessmentItem where m.AssessmentItemID == id select m.UpdateUserID).FirstOrDefault();
            var Info    = (from m in db.CEDTS_AssignAssessment where m.AssessmentItemID == id select m.UpdateUserID).FirstOrDefault();
            int UserID1 = _item.SelectUserID(User.Identity.Name);

            if (UserID == UserID1 || Info == UserID1)
            {
                return(View("ViewPage1"));
            }
            else
            {
                ViewData["ID"] = id;
                int?ItemID = _item.GetEditItemID(id);
                if (ItemID == 1)
                {
                    return(View("EditSAS"));
                }
                if (ItemID == 5)
                {
                    return(View("EditComplex"));
                }

                if (ItemID == 6)
                {
                    return(View("EditBankedCloze"));
                }
                if (ItemID == 7)
                {
                    return(View("EditMultipleChoice"));
                }
                if (ItemID == 8)
                {
                    return(View("EditCloze"));
                }
                else
                {
                    return(View("EditListen"));
                }
            }
        }