public JsonResult GetCertificateInfoConfirmedRequest(Guid currentMarkerId)
        {
            CertificateInfoModel model = new CertificateInfoModel();

            Guid token = CheckSessionAuthState(CurrentUser, _authService);

            if (token == Guid.Empty)
            {
                model.Status       = MainStatus.Failed;
                model.SystemLogoff = true;
                return(Json(model, JsonRequestBehavior.AllowGet));
            }



            GetCertificateInfoResponse response = _markerService.GetCertificateInfoByLogin(currentMarkerId, token);

            if (response.Error != null)
            {
                model.Error = response.Error;
                return(Json(model, JsonRequestBehavior.AllowGet));
            }

            if (response.Status == MainStatus.Failed || response.Status == MainStatus.NeedRelogin || response.Status == MainStatus.NeedSmsConfirmation)
            {
                model.Status = response.Status;
                return(Json(model, JsonRequestBehavior.AllowGet));
            }

            model.ShowingInfo = response.CertInfoDictionary;
            model.Status      = response.Status;
            return(Json(model, JsonRequestBehavior.AllowGet));
        }
        /// <summary>
        /// Возвращаем инфу для показа пользователю
        /// </summary>
        /// <param name="currentMarkerId"></param>
        /// <returns></returns>
        public JsonResult GetCertificateInfo(Guid currentMarkerId)
        {
            CertificateInfoModel model = new CertificateInfoModel();

            Guid token = CheckSessionAuthState(CurrentUser, _authService);

            if (token == Guid.Empty)
            {
                model.Status       = MainStatus.Failed;
                model.SystemLogoff = true;
                return(Json(model, JsonRequestBehavior.AllowGet));
            }


            if (Session[currentMarkerId.ToString()] == null)
            {
                model.Status = MainStatus.NeedRelogin;
                return(Json(model, JsonRequestBehavior.AllowGet));
            }
            MarkerActivationBase markerActivationBase = Session[currentMarkerId.ToString()] as MarkerActivationBase;

            GetCertificateInfoResponse response = _markerService.GetCertificateInfo(markerActivationBase.PhpSessionStream, token);

            if (response.Error != null)
            {
                model.Error = response.Error;
                return(Json(model, JsonRequestBehavior.AllowGet));
            }

            if (response.Status == MainStatus.Failed || response.Status == MainStatus.NeedRelogin || response.Status == MainStatus.NeedSmsConfirmation)
            {
                model.Status = response.Status;
                return(Json(model, JsonRequestBehavior.AllowGet));
            }
            markerActivationBase.LoadCertificateXML(response.CertificateXML, Session);
            model.ShowingInfo = response.CertInfoDictionary;
            model.Status      = response.Status;
            return(Json(model, JsonRequestBehavior.AllowGet));
        }