public int Login(pos.EL.Registrations.Users user) { String sQuery = "Select * from users where username = '******' and password = '******' "; System.Data.DataTable dt = Helper.executeQuery(sQuery); if (dt.Rows.Count >= 1) { user.Userid = Convert.ToInt32(dt.Rows[0]["userid"].ToString()); user.Username = dt.Rows[0]["username"].ToString(); user.Password = dt.Rows[0]["password"].ToString(); } return(dt.Rows.Count); }
public int Login(pos.EL.Registrations.Users user) { pos.DL.Registrations.Users userDL = new pos.DL.Registrations.Users(); return(userDL.Login(user)); }