public JsonResult GetProfileCompleteness(int EmployeeId) { NuPortalEmpService.NuPortalEmployeeService empService = new NuPortalEmpService.NuPortalEmployeeService(); empService.Url = Constants.EmpService; try { string jsonString = empService.GetEmployeeProfileCompleted(EmployeeId); if (jsonString != string.Empty) { return(Json(jsonString, JsonRequestBehavior.AllowGet)); } } 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, JsonRequestBehavior.AllowGet)); }