Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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])));
        }