public bool ValidateUser(Model.User u) { bool status = false; if (u.Uname != null & u.Upassword.Length >= 8) { DAO.User d1 = new DAO.User(); if (!d1.CheckUser(u)) { d1.Insert(u); status = true; } } else { status = false; } return(status); }
public bool ValidateUser(Model.User u) { bool status = false; if (u.Uname != null & u.Upassword.Length >= 8) { DAO.User d1 = new DAO.User(); if (!d1.CheckUser(u)) { d1.Insert(u); status = true; } } else { status = false; } return(status); }