public int login(string userName, string pwd) { UserInfoModel model = dal.GetUserModelByUserName(userName); if (model == null) { return(0); } else if (pwd == model.UPassword) { return(1); } else { return(-1); } }
public int login(string userName, string pwd) { UserInfoModel model = dal.GetUserModelByUserName(userName); if (model == null) { return(0); } else if (pwd == model.UPassword) { return(1); } else { return(-1); } }