public virtual ActionResult Index(bool? emulateMobile)
 {
     DiagnosticModel model = new DiagnosticModel();
     if (emulateMobile.HasValue)
     {
         if (emulateMobile.Value)
         {
             HttpContext.SetOverriddenBrowser(BrowserOverride.Mobile);
         }
         else
         {
             HttpContext.ClearOverriddenBrowser();
         }
         //MobileEmulation.EmulateMobile(this.ControllerContext, emulateMobile.Value);
         return RedirectToAction(MVC_DcmsMobile.Home.Actions.Index());
     }
     return View(model);
 }
Esempio n. 2
0
        public virtual ActionResult Index(bool?emulateMobile)
        {
            DiagnosticModel model = new DiagnosticModel();

            if (emulateMobile.HasValue)
            {
                if (emulateMobile.Value)
                {
                    HttpContext.SetOverriddenBrowser(BrowserOverride.Mobile);
                }
                else
                {
                    HttpContext.ClearOverriddenBrowser();
                }
                //MobileEmulation.EmulateMobile(this.ControllerContext, emulateMobile.Value);
                return(RedirectToAction(MVC_DcmsMobile.Home.Actions.Index()));
            }
            return(View(model));
        }
Esempio n. 3
0
        /// <summary>
        /// Displays the e-mail view
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public virtual ActionResult Email(DiagnosticModel model)
        {
            var emailModel = new DiagnosticEmailModel();

            return(View(emailModel));
        }
 /// <summary>
 /// Displays the e-mail view
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public virtual ActionResult Email(DiagnosticModel model)
 {
     var emailModel = new DiagnosticEmailModel();
     return View(emailModel);
 }