Exemplo n.º 1
0
        public CommonLib.ReturnState Register(RegisterView model)
        {
            var result = CommonLib.ReturnState.ReturnOK;

            if (AccountOperator.HasMember(model.Email))
            {
                result = CommonLib.ReturnState.ReturnError;
            }
            result = AccountOperator.Register(model);
            result = AccountOperator.AddEmailToCheckSet(model.Email) ? CommonLib.ReturnState.ReturnOK : CommonLib.ReturnState.ReturnError;
            if (result.Equals(CommonLib.ReturnState.ReturnOK))
            {
                SendEmailForRegister(model.Email);
            }

            return(result);
        }
Exemplo n.º 2
0
 public void RegisterWithoutValid(RegisterView model)
 {
     AccountOperator.Register(model);
 }