示例#1
0
 public ActionResult SaveIdentity(int EmployeeId, string jsonData)
 {
     NuPortalEmpService.NuPortalEmployeeService empService = new NuPortalEmpService.NuPortalEmployeeService();
     empService.Url = Constants.EmpService;
     try
     {
         DataTable data      = JsonConvert.DeserializeObject <DataTable>(jsonData);
         bool      IsSuccess = empService.SetIdentityDetails(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));
 }