public ActionResult Edit_Save(USER_INFO userinfo)
 {
     using (var context = new AssessmentEntities())
     {
         try
         {
             var i = context.spINSTRUCTOREDIT(userinfo.INSTRUCTOR_EMAILID, userinfo.INSTRUCTOR_NAME);
             return RedirectToAction("AllInstructors");
         }
         catch (Exception ex)
         {
             Console.WriteLine(ex.Message);
             ViewBag.ErrorMsg = "Unable to edit the record. Please retry again.";
             return View("Error");
         }
     }
 }
 public ActionResult Insert(USER_INFO userinfo)
 {
     using (var context = new AssessmentEntities())
     {
         try
         {
             var result = context.spInstructorAddNew(userinfo.INSTRUCTOR_NAME, userinfo.INSTRUCTOR_EMAILID);
             return RedirectToAction("AllInstructors");
         }
         catch (Exception ex)
         {
             Console.WriteLine(ex.Message);
             ViewBag.ErrorMsg = "Instructor Email ID already exist in the Database. Please use different one.";
             return View("Error");
         }
     }
 }