// // 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); }
// // 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); }