public ActionResult Create(RUBRICS_DATA rubricData)
 {
     if (ModelState.IsValid)
     {
         using (var context = new AssessmentEntities())
         {
             try
             {
                 context.RUBRICS_DATA.Add(rubricData);
                 context.SaveChanges();
                 ViewBag.InsertionResult = "Rubric Successfully inserted.";
             }
             catch (Exception ex)
             {
                 Response.Write(ex.Message);
                 ViewBag.ErrorMsg = "Performance Indicator already Exist. Please check the input again";
                 return View("Error");
             }
             finally
             {
                 DepartmentList departmentList = new DepartmentList();
                 ViewBag.Departments = departmentList.getDepartmentList(context);
             }
         }
         return PartialView("_InsertResult");
     }
     else
     {
         ViewBag.ErrorMsg = "Invalid Input entered.";
         return View("Error");
     }
 }
 public ActionResult Create()
 {
     using (var context = new AssessmentEntities())
     {
         DepartmentList departmentList = new DepartmentList();
         ViewBag.Departments = departmentList.getDepartmentList(context);
         return View();
     }
 }
 public ActionResult AllRubrics()
 {
     if (ModelState.IsValid)
     {
         using (var context = new AssessmentEntities())
         {
             DepartmentList departmentList = new DepartmentList();
             ViewBag.Departments = departmentList.getDepartmentList(context);
         }
         return View();
     }
     ViewBag.ErrorMsg = "Invalid option selected. No such record exist";
     return View("Error");
 }