Example #1
0
 public ActionResult Edit(CandidateModel cm, int note = 0)
 {
     try
     {
         CandidateRepository cr = new CandidateRepository();
         cr.Update(cm);
         if (HttpContext.User.Identity.Name == "Super" && note != 0)
         {
             cr.BeAdjusted(cm.Id, note);
         }
         return(Json(new { success = true }));
     }
     catch (Exception e)
     {
         return(Json(new { success = false, message = e.Message }));
     }
 }