public ActionResult LoadRegistration(string teamid) { string ss = Request.QueryString["teamid"]; User objUser = (User)Session["User"]; if (!String.IsNullOrEmpty(teamid)) { objUser = new Domain.Socioboard.Domain.User(); Api.Team.Team ApiobjTeam = new Api.Team.Team(); Team objuserinfo = (Team)(new JavaScriptSerializer().Deserialize(ApiobjTeam.GetTeamById(teamid), typeof(Team))); objUser.EmailId = objuserinfo.EmailId; } return(PartialView("_RegistrationPartial", objUser)); }
public ActionResult LoadRegistration(string teamid) { string ss = Request.QueryString["teamid"]; User objUser = (User)Session["User"]; if (!String.IsNullOrEmpty(teamid)) { objUser = new Domain.Socioboard.Domain.User(); Api.Team.Team ApiobjTeam = new Api.Team.Team(); Team objuserinfo = (Team)(new JavaScriptSerializer().Deserialize(ApiobjTeam.GetTeamById(teamid), typeof(Team))); objUser.EmailId = objuserinfo.EmailId; } return PartialView("_RegistrationPartial", objUser); }
public ActionResult Index(string teamid) { User objUser = (User)Session["User"]; if (teamid != null) { if (objUser != null) { Api.Team.Team ApiobjTeam = new Api.Team.Team(); Team objuserinfo = (Team)(new JavaScriptSerializer().Deserialize(ApiobjTeam.GetTeamById(teamid), typeof(Team))); if (objuserinfo.InviteStatus == 0) { ApiobjTeam.UpdateTeam(objUser.Id.ToString(), teamid, objUser.UserName); } Response.Redirect("../Home/Index", true); } else { //Response.Redirect("Index/Registration?teamid="+teamid +""); return(RedirectToAction("Registration", "Index", new { teamid = teamid })); } } Session["fblogin"] = null; ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; #region Count Used Accounts try { Api.SocialProfile.SocialProfile apiobjSocialProfile = new Api.SocialProfile.SocialProfile(); apiobjSocialProfile.GetAllSocialProfiles(); Session["ProfileCount"] = Convert.ToInt16(apiobjSocialProfile.GetAllSocialProfilesOfUserCount(objUser.Id.ToString()).ToString()); Session["TotalAccount"] = Convert.ToInt16(SBUtils.GetUserPackageProfileCount(objUser.AccountType)); } catch (Exception ex) { Console.WriteLine(ex.Message); } #endregion if (Session["SocialManagerInfo"] != null) { } return(View(User)); // return PartialView("_HomePartial"); }