public ActionResult Deferment(DefermentCard model) { string msg = ""; try { model.Student_No = GetStudentInfo().No; WebServices.DefermentCard().Create(ref model); //Send to HOD var application = WebServices.DefermentCard().Read(model.No); application.Status = DefermentCardService.Status.HOD; application.StatusSpecified = true; application.Student_Date = DateTime.Now; application.Student_DateSpecified = true; WebServices.DefermentCard().Update(ref application); msg = "Application has been sent successfully"; } catch (Exception ex) { return(Json(ex.Message)); } return(Json(msg)); }