//Add User To Security Group public ActionResult GetSeccFormProcessToAddInRights() { try { var FrmProcList = (from mi in _secFormProcessService.All().ToList() join md in _secFormListService.All().ToList() on mi.FormID equals md.FormID select new { FormProcessID = mi.FormProcessID, FormID = mi.FormID, FormName = md.FormName, ProcessName = mi.ProcessName, ProcessDescription = mi.ProcessDescription }).ToList(); //var serializerSettings = new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.Objects }; //string json = JsonConvert.SerializeObject(SecGrp, Formatting.Indented, serializerSettings); if (FrmProcList != null) { return(Json(FrmProcList, JsonRequestBehavior.AllowGet)); } else { return(Json(new EmptyResult(), JsonRequestBehavior.AllowGet)); } } catch (Exception) { return(Json("0", JsonRequestBehavior.AllowGet)); } }