public ActionResult Index() { if (Request.QueryString["teamid"] != null) { string teamid = Request.QueryString["teamid"].ToString(); Api.Team.Team _apiteam = new Api.Team.Team(); _apiteam.UpdateTeambyteamid(teamid); } if (Session["Paid_User"] != null && Session["Paid_User"].ToString() == "Unpaid") { return(RedirectToAction("Billing", "PersonalSetting")); } else { ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; #region Count Used Accounts try { User objUser = (User)Session["User"]; 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)); ViewBag.AccountType = objUser.AccountType; //if (Session["GroupName"] == null) //{ // Groups objGroupDetails = objGroupRepository.getGroupDetail(user.Id); // team = objTeamRepo.getAllDetails(objGroupDetails.Id, user.EmailId); // Session["GroupName"] = team; //} //else //{ // team = (SocioBoard.Domain.Team)Session["GroupName"]; //} } catch (Exception ex) { Console.WriteLine(ex.Message); } #endregion if (Session["SocialManagerInfo"] != null) { } int ProfileCount = int.Parse(Session["ProfileCount"].ToString()); return(View(User)); // return PartialView("_HomePartial"); } }
public ActionResult Index() { if (Session["User"] != null) { User objUser = (User)Session["User"]; if (TempData["IsTwitterAccountAdded"] != null && TempData["TwitterAccount"] != null) { //To enable the Tweet Pop up ViewBag.IsTwitterAccountAdded = TempData["IsTwitterAccountAdded"]; ViewBag.TwitterAccount = TempData["TwitterAccount"]; } if (TempData["IsFacebookAccountAdded"] != null && TempData["FacebookAccount"] != null) { //To enable the Tweet Pop up ViewBag.IsFacebookAccountAdded = TempData["IsFacebookAccountAdded"]; ViewBag.FacebookAccount = TempData["FacebookAccount"]; } if (Request.QueryString["teamid"] != null) { string teamid = Request.QueryString["teamid"].ToString(); Api.Team.Team _apiteam = new Api.Team.Team(); _apiteam.Timeout = 300000; _apiteam.UpdateTeambyteamid(teamid); } if (Session["Paid_User"] != null && Session["Paid_User"].ToString() == "Unpaid") { return RedirectToAction("Billing", "PersonalSetting"); } else { ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; #region Count Used Accounts try { objUser = (User)Session["User"]; Api.SocialProfile.SocialProfile apiobjSocialProfile = new Api.SocialProfile.SocialProfile(); apiobjSocialProfile.Timeout = 300000; //apiobjSocialProfile.GetAllSocialProfiles(); Session["ProfileCount"] = Convert.ToInt16(apiobjSocialProfile.GetAllSocialProfilesOfUserCount(objUser.Id.ToString()).ToString()); Session["TotalAccount"] = Convert.ToInt16(SBUtils.GetUserPackageProfileCount(objUser.AccountType)); ViewBag.AccountType = objUser.AccountType; } catch (Exception ex) { Console.WriteLine(ex.Message); } #endregion if (Session["SocialManagerInfo"] != null) { } int ProfileCount = int.Parse(Session["ProfileCount"].ToString()); if (objUser.ActivationStatus=="1") { return View(User); } else { return RedirectToAction("Index", "Index"); } } } else { return RedirectToAction("Index", "Index"); } }
public ActionResult Index() { if (Session["User"] != null) { User objUser = (User)Session["User"]; if (TempData["IsTwitterAccountAdded"] != null && TempData["TwitterAccount"] != null) { //To enable the Tweet Pop up ViewBag.IsTwitterAccountAdded = TempData["IsTwitterAccountAdded"]; ViewBag.TwitterAccount = TempData["TwitterAccount"]; } if (TempData["IsFacebookAccountAdded"] != null && TempData["FacebookAccount"] != null) { //To enable the Tweet Pop up ViewBag.IsFacebookAccountAdded = TempData["IsFacebookAccountAdded"]; ViewBag.FacebookAccount = TempData["FacebookAccount"]; } if (Request.QueryString["teamid"] != null) { string teamid = Request.QueryString["teamid"].ToString(); Api.Team.Team _apiteam = new Api.Team.Team(); _apiteam.Timeout = 300000; _apiteam.UpdateTeambyteamid(teamid); } if (Session["Paid_User"] != null && Session["Paid_User"].ToString() == "Unpaid") { return(RedirectToAction("Billing", "PersonalSetting")); } else { ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; #region Count Used Accounts try { objUser = (User)Session["User"]; Api.SocialProfile.SocialProfile apiobjSocialProfile = new Api.SocialProfile.SocialProfile(); apiobjSocialProfile.Timeout = 300000; //apiobjSocialProfile.GetAllSocialProfiles(); Session["ProfileCount"] = Convert.ToInt16(apiobjSocialProfile.GetAllSocialProfilesOfUserCount(objUser.Id.ToString()).ToString()); Session["TotalAccount"] = Convert.ToInt16(SBUtils.GetUserPackageProfileCount(objUser.AccountType)); ViewBag.AccountType = objUser.AccountType; } catch (Exception ex) { Console.WriteLine(ex.Message); } #endregion if (Session["SocialManagerInfo"] != null) { } int ProfileCount = int.Parse(Session["ProfileCount"].ToString()); if (objUser.ActivationStatus == "1") { return(View(User)); } else { return(RedirectToAction("UserActivationByEmail", "Index", new { email = objUser.EmailId })); } } } else { return(RedirectToAction("Index", "Index")); } }