public ActionResult DeploymentPeriods(int defaultDeploymentPeriod = 0)
        {
            ACM.Model.PartialViewInfo partialView        = new Model.PartialViewInfo();
            ACM.BO.DeploymentPeriodBO deploymentPeriodBO = new BO.DeploymentPeriodBO();
            if (Session["CampaignId"] != null)
            {
                partialView.CampaignId = (int)Session["CampaignId"];
            }
            var deploymentPeriod = deploymentPeriodBO.GetAvailableDeploymentPeriod(partialView.CampaignId);

            ViewBag.deploymentPeriod = new SelectList(deploymentPeriod, "ID", "Name");

            if (defaultDeploymentPeriod != 0)
            {
                partialView.DeploymentPeriodId = defaultDeploymentPeriod;
            }
            else if (Session["DeploymentPeriodId"] != null)
            {
                partialView.DeploymentPeriodId = (int)Session["DeploymentPeriodId"];
            }
            else if (deploymentPeriod.Count > 0)
            {
                partialView.DeploymentPeriodId = deploymentPeriod[0].ID;
            }
            else
            {
                partialView.DeploymentPeriodId = 0;
            }
            return(PartialView("_DeploymentPeriods", partialView));
        }
Esempio n. 2
0
 //
 // GET: /Ad/
 public ActionResult AdDashboard(int CampaignId = 0)
 {
     ACM.Model.PartialViewInfo partialView = new Model.PartialViewInfo();
     if (Session["CampaignId"] != null)
         partialView.CampaignId = (Int32)Session["CampaignId"];
     else
         partialView.CampaignId = CampaignId;
     return View(partialView);
 }
Esempio n. 3
0
 //
 // GET: /Ad/
 public ActionResult AdDashboard(int CampaignId = 0)
 {
     ACM.Model.PartialViewInfo partialView = new Model.PartialViewInfo();
     if (Session["CampaignId"] != null)
     {
         partialView.CampaignId = (Int32)Session["CampaignId"];
     }
     else
     {
         partialView.CampaignId = CampaignId;
     }
     return(View(partialView));
 }
        public ActionResult RenderLeftMenu(int campaignId = 0)
        {
            CampaignClient campaignService = new CampaignClient();
            ACM.Model.PartialViewInfo partialView = new Model.PartialViewInfo();

            if (Session["CampaignId"] != null)
                partialView.CampaignId = (Int32)Session["CampaignId"];
            else
                partialView.CampaignId = campaignId;
            CampaignBO campaignBO = new CampaignBO();
            partialView = campaignBO.CampaignLeftNavigationDetails(partialView.CampaignId);

            if (Session["DeploymentPeriodId"] != null)
            {
                partialView.DeploymentPeriodId = (int)Session["DeploymentPeriodId"];
            }

            return PartialView("_LeftMenu", partialView);
        }
        public ActionResult RenderLeftMenu(int campaignId = 0)
        {
            CampaignClient campaignService = new CampaignClient();
            ACM.Model.PartialViewInfo partialView = new Model.PartialViewInfo();

            if (Session["CampaignId"] != null)
                partialView.CampaignId = (Int32)Session["CampaignId"];
            else
                partialView.CampaignId = campaignId;
            CampaignBO campaignBO = new CampaignBO();
            partialView = campaignBO.CampaignLeftNavigationDetails(partialView.CampaignId);

            if (Session["DeploymentPeriodId"] != null)
            {
                partialView.DeploymentPeriodId = (int)Session["DeploymentPeriodId"];
            }

            return PartialView("_LeftMenu", partialView);
        }
        public ActionResult DeploymentPeriods(int defaultDeploymentPeriod = 0)
        {
            ACM.Model.PartialViewInfo partialView = new Model.PartialViewInfo();
            ACM.BO.DeploymentPeriodBO deploymentPeriodBO = new BO.DeploymentPeriodBO();
            if (Session["CampaignId"] != null)
                partialView.CampaignId = (int)Session["CampaignId"];
            var deploymentPeriod = deploymentPeriodBO.GetAvailableDeploymentPeriod(partialView.CampaignId);
            ViewBag.deploymentPeriod = new SelectList(deploymentPeriod, "ID", "Name");

            if (defaultDeploymentPeriod != 0)
                partialView.DeploymentPeriodId = defaultDeploymentPeriod;
            else if (Session["DeploymentPeriodId"] != null)
                partialView.DeploymentPeriodId = (int)Session["DeploymentPeriodId"];
            else if (deploymentPeriod.Count > 0)
                partialView.DeploymentPeriodId = deploymentPeriod[0].ID;
            else
                partialView.DeploymentPeriodId = 0;
            return PartialView("_DeploymentPeriods", partialView);
        }