/// <summary>
        /// The login.
        /// </summary>
        /// <returns>
        /// The System.Web.Mvc.ActionResult.
        /// </returns>
        public ActionResult Login()
        {
            var model = new LoginModel();
            var message = _sessionStorage.GetValueAndClearAfter(SessionStorage.LOGIN_MESSAGE);
            if (!string.IsNullOrWhiteSpace(message))
            {
                model.MessageToShowAbove = message;
            }

            return View(model);
        }
        public ActionResult Login(LoginModel model, string returnUrl)
        {
            if (ModelState.IsValid)
            {
                if (Membership.ValidateUser(model.Username, model.Password))
                {
                    FormsAuthentication.SetAuthCookie(model.Username, false);
                    if (Url.IsLocalUrl(returnUrl)
                        && returnUrl.Length > 1
                        && returnUrl.StartsWith("/")
                        && !returnUrl.StartsWith("//")
                        && !returnUrl.StartsWith("/\\"))
                    {
                        return Redirect(returnUrl);
                    }

                    return RedirectToAction("Index", "Home");
                }
            }

            //ModelState.AddModelError(string.Empty, @"Incorrect login and/or password. Please, try again.");
            ModelState.AddModelError(string.Empty, @"неправильный логин и/или пароль. Пожалуйста, попробуйте ещё раз.");
            return View(model);
        }