Example #1
0
        public ActionResult Index()
        {
            ContentPageModel contentPage = null;

            try
            {
                if (!ApplicationContext.Getinstance().eCollabroSetupReady) // check for first time
                {
                    ISetupClient setupClient = ApplicationContext.Getinstance().UnityContainer.Resolve <ISetupClient>();

                    if (!setupClient.CheckEcollabroSetup())
                    {
                        TempData["NeedSetup"] = true;
                        return(Redirect("/Setup"));
                    }
                    else
                    {
                        ApplicationContext.Getinstance().eCollabroSetupReady = true;
                    }
                }

                contentPage = ContentClientProcessor.GetHomePage();
            }
            catch (Exception ex)
            {
                HandleError(ex);
            }
            return(View(contentPage));
        }
Example #2
0
 /// <summary>
 /// SetupController
 /// </summary>
 public SetupController()
 {
     this.SetupClientProcessor = ApplicationContext.Getinstance().UnityContainer.Resolve <ISetupClient>();
 }