public ActionResult SaveAcademic(int EmployeeId, string jsonData) { DataTable data = JsonConvert.DeserializeObject <DataTable>(jsonData); NuPortalEmpService.NuPortalEmployeeService empService = new NuPortalEmpService.NuPortalEmployeeService(); empService.Url = Constants.EmpService; try { bool IsSuccess = empService.SetAcademic(EmployeeId, jsonData); if (IsSuccess) { return(Json(Common_Library.Constants.JsonSuccess)); } } catch (Exception ex) { GeneralFunctions genFun = new GeneralFunctions(); genFun.LogError(ControllerContext.HttpContext, ex.Message, ex.TargetSite.Name, Convert.ToString(ControllerContext.RouteData.Values["action"]), Convert.ToString(ControllerContext.RouteData.Values["controller"])); genFun = null; } finally { empService = null; } return(Json(Common_Library.Constants.JsonError)); }