/// <summary>
        /// проверка верности смс
        /// </summary>
        /// <param name="pin">пин из смс</param>
        /// <param name="currentMarkerId"></param>
        /// <returns></returns>
        public JsonResult CheckSms(string pin, Guid currentMarkerId)
        {
            LogonModel model = new LogonModel();

            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;

            MarkerActivationResponse response = _markerService.CheckSms(pin, markerActivationBase.PhpSessionStream, token);

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


            model.CurrentMarkerId = markerActivationBase.Id;
            model.Status          = response.Status;

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
        public JsonResult DeleteRequest(Guid requestId)
        {
            MarkerActivationModel model = new MarkerActivationModel();
            Guid token = CheckSessionAuthState(CurrentUser, _authService);

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

            MarkerActivationResponse response = _markerService.DeleteRequest(requestId, token);

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

            model.Status = response.Status;

            return(Json(model, JsonRequestBehavior.AllowGet));
        }