public ActionResult Registration(RegistrationViewModel model, string returnUrl)
        {
            if (_authProvider.CheckByLogin(model.NewEmail))
            {
                Logger.Error(Messages.LogsConstant.TheEmailAlreadyPresent.Format(model.NewEmail));
                ModelState.AddModelError("", Messages.MessagesConstant.TheEmailAlreadyPresent.ToString());
                return(View());
            }

            string error;

            if (!_authProvider.CreateUser(model, out error))
            {
                Logger.Debug(Messages.LogsConstant.TheUserCreated.Format(model.FullName));
                return(RedirectToAction("Login", "Account"));
            }
            Logger.Debug(Messages.LogsConstant.TheUserCreatedMistake.Format(model.FullName, error));
            ModelState.AddModelError("",
                                     Messages.MessagesConstant.TheUserCreatedMistake.Format(model.FullName, error));

            return(View());
        }