コード例 #1
0
        //
        // GET: /Assessment/Delete/5
        public ActionResult CourseColor()
        {
            AssessmentModel objAssessmentM = new AssessmentModel();
            long AccountID = 0;

            IEnumerable<CalendarBE> EntityList = null;
            if (Request.Cookies["ID"] != null)
            {
                AccountID = Convert.ToInt64(Request.Cookies["ID"].Value);
                EntityList = objAssessmentM.GetCourseColor(AccountID);

            }

            return View(EntityList);
        }
コード例 #2
0
        //
        // POST: /Assessment/Create
        public ActionResult AssessmentList()
        {
            long AccountID;

            AssessmentModel objAssessmentM = new AssessmentModel();
            int intRecords = 0;

            IEnumerable<CalendarBE> EntityList = null;
            if (Request.Cookies["ID"] != null)
            {
                AccountID = Convert.ToInt64(Request.Cookies["ID"].Value.ToString());
                EntityList = objAssessmentM.GetTopAssessment(AccountID);
                intRecords = objAssessmentM.GetTopAssessment(AccountID).Count();
            }

            if (intRecords <= 0)
            {
                ViewData["Message"] = "No Assessment is available yet. Be the one to create Assessment.";
            }

            return View(EntityList);
        }