private void FillCaptcha()
        {
            try
            {
                var    Captcha = new R2CoreInstanceCaptchaManager();
                string CWord   = Captcha.GenerateFakeWord(5);
                Session["_CaptchaWord"] = CWord;
                Bitmap CImage = Captcha.GenerateCaptcha(CWord);

                CImage.Save(Server.MapPath("~/Images/Captcha.jpg"));
                ImgCaptcha.ImageUrl = "~/Images/Captcha.jpg";
                //ImgCaptcha.ImageUrl = "data:image/jpg;base64," + Convert.ToBase64String((new JsonImage(CImage)).GetRawData());
            }
            catch (Exception ex)
            { Page.ClientScript.RegisterStartupScript(GetType(), "WcViewAlert", "WcViewAlert('1','" + ex.Message + "');", true); }
        }
        public HttpResponseMessage GetCaptcha()
        {
            ATISMobileWebApi WebAPi = new ATISMobileWebApi();
            try
            {
                //تایید اعتبار کلاینت
                WebAPi.AuthenticateClientGetCaptcha(Request);

                var NSSSoftwareuser = WebAPi.GetNSSSoftwareUser(Request);
                var InstanceSoftwareusers = new R2CoreInstanseSoftwareUsersManager();
                var InstanceCaptcha = new R2CoreInstanceCaptchaManager();
                var CaptchaImage = InstanceCaptcha.GenerateCaptcha(InstanceSoftwareusers.GetCaptchaNumericforSoftwareUser(NSSSoftwareuser));
                ImageRawData IImage = new ImageRawData();
                IImage.IRawData = (new JsonImage(CaptchaImage)).GetRawData();
                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK);
                response.Content = new StringContent(JsonConvert.SerializeObject(IImage), Encoding.UTF8, "application/json");
                return response;
            }
            catch (Exception ex)
            { return WebAPi.CreateErrorContentMessage(ex); }
        }