public static Account GetByEmail(string email) { var row = db.ReaderRow(db.ReturnCommand($"select * from tbLogin where LoginEmail = '{email}'")); Account account = new Account((uint)row[0], (string)row[1], RoleDAO.GetById((byte)row[3])); return(account); }
public static Account GetById(uint id) { var row = db.ReaderRow(db.ReturnCommand($"select * from tbLogin where LoginId = '{id}'")); return(new Account((uint)row[0], (string)row[1], RoleDAO.GetById((byte)row[3]))); }