示例#1
0
        public bool IsValidUser(MarketManRegisterFM userFM)
        {
            MarketManDAO dao = new MarketManDAO();

            if (dao.GetMarketManByEmail(userFM.Email) == null)
            {
                return(true);
            }
            return(false);
        }
示例#2
0
        public bool ConfirmEmailLength(MarketManRegisterFM userFM)
        {
            MarketManDAO dao = new MarketManDAO();

            if (userFM.Email != null && userFM.Email.Length > 5)
            {
                return(true);
            }
            return(false);
        }
示例#3
0
 public bool CreateUser(MarketManRegisterFM userFM)
 {
     if (IsValidUser(userFM))
     {
         //email temp pass to user
         MarketManDAO dao  = new MarketManDAO();
         MarketMan    user = new MarketMan();
         user.Email    = userFM.Email;
         user.Password = userFM.Password;
         dao.CreateMarketMan(user);
         return(true);
     }
     return(false);
 }