public bool IsValidUser(MarketManRegisterFM userFM) { MarketManDAO dao = new MarketManDAO(); if (dao.GetMarketManByEmail(userFM.Email) == null) { return(true); } return(false); }
public bool ConfirmEmailLength(MarketManRegisterFM userFM) { MarketManDAO dao = new MarketManDAO(); if (userFM.Email != null && userFM.Email.Length > 5) { return(true); } return(false); }
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); }