public ActionResult AlertPage(string AlertString, string link, int?type)
 {
     if (!type.HasValue)
     {
         type = (int)EnumCore.AlertPageType.lockscreen;
     }
     ///lockscreen
     if (type == (int)EnumCore.AlertPageType.lockscreen)
     {
         AlertPageViewModel model = new AlertPageViewModel();
         model.AlertString = AlertString;
         model.AlertLink   = link;
         return(View("AlertPage", model));
     }
     else
     {
         AlertPageViewModel model = new AlertPageViewModel();
         model.AlertString = AlertString;
         model.AlertLink   = link;
         return(View("AlertPageFullScreen", model));
     }
 }
 public AlertPage()
 {
     InitializeComponent();
     BindingContext = new AlertPageViewModel();
 }