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 SaveRubric(RUBRICS_DATA rubricData)
 {
     using (var context = new AssessmentEntities())
     {
         context.spUPDATERUBRICDATA(rubricData.RUBRIC_ROWID, rubricData.OUTCOMES, rubricData.PERFORMANCE_INDICATOR, rubricData.TOPIC, rubricData.POOR, rubricData.DEVELOPING, rubricData.DEVELOPED, rubricData.EXEMPLARY, rubricData.EXPECTATION_LEVEL);
         context.SaveChanges();
         var rubricRecord = context.spRUBRICSGETRECORD_RUBID(rubricData.RUBRIC_ROWID).SingleOrDefault();
         return EditCancel(rubricData.RUBRIC_ROWID);
     }
 }