public JsonResult ResendRequest(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));
            }

            CreateRequestResponse response = _markerService.ResendRequest(requestId, token);

            if (response.Status == MainStatus.NeedSmsConfirmation)
            {
                MarkerActivationBase markerActivationBase = new MarkerActivationBase(response.SessionData, requestId);
                Session[markerActivationBase.Id.ToString()] = markerActivationBase;
            }


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

            model.Status = response.Status;

            return(Json(model, JsonRequestBehavior.AllowGet));
        }
        public JsonResult ResendRequestAfterCheckSms(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));
            }
            MarkerActivationBase markerActivationBase = Session[requestId.ToString()] as MarkerActivationBase;


            CreateRequestResponse response = _markerService.ResendRequestPhpSessionLogin(requestId, markerActivationBase.PhpSessionStream, token);


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

            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));
        }