public async Task <ActionResult> VerifyPhoneNumber(VerifyPhoneNumberViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            var result = await UserManager.ChangePhoneNumberAsync(User.Identity.GetUserId(), model.PhoneNumber, model.Code);

            if (result.Succeeded)
            {
                var user = await UserManager.FindByIdAsync(User.Identity.GetUserId());

                if (user != null)
                {
                    await SignInManager.SignInAsync(user, isPersistent : false, rememberBrowser : false);

                    Connection.Connection con = new Connection.Connection();
                    Boolean Status            = con.UpdateUserPhone(User.Identity.GetUserId(), model.PhoneNumber);
                }
                return(RedirectToAction("Index", new { Message = ManageMessageId.AddPhoneSuccess }));
            }
            // If we got this far, something failed, redisplay form
            ModelState.AddModelError("", "خطا در تایید شماره تلفن");
            return(View(model));
        }
        //
        // GET: /Manage/RemovePhoneNumber
        public async Task <ActionResult> RemovePhoneNumber()
        {
            var result = await UserManager.SetPhoneNumberAsync(User.Identity.GetUserId(), null);

            if (!result.Succeeded)
            {
                return(RedirectToAction("Index", new { Message = ManageMessageId.Error }));
            }
            var user = await UserManager.FindByIdAsync(User.Identity.GetUserId());

            if (user != null)
            {
                await SignInManager.SignInAsync(user, isPersistent : false, rememberBrowser : false);

                Connection.Connection con = new Connection.Connection();
                Boolean Status            = con.UpdateUserPhone(User.Identity.GetUserId(), "");
            }
            return(RedirectToAction("Index", new { Message = ManageMessageId.RemovePhoneSuccess }));
        }