Пример #1
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);
 }
Пример #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));
        }
Пример #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));
        }
Пример #4
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);
 }