public JsonResult MoveContact(int contactid, int companyid, int companyidold) { string msg = ""; try { context.SpMoveContact(companyid, contactid, companyidold); context.SaveChanges(); msg = Url.Action("Index", "ProspectViewCompanyClient", new { @Compid = @cm.Code_Encrypt(CryptorEngine.Encrypt(companyid.ToString())) }); } catch (Exception ex) { cm.ErrorExceptionLogingByService(ex.ToString(), "ProspectViewCompanyClient" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "MoveContact", "NA", "NA", "NA", "WEB"); } return(Json(msg, JsonRequestBehavior.AllowGet)); }