Beispiel #1
0
        //Variables

        public DataView AdminLogin(string adminUN, string adminPWD)
        {
            DataView   dvMsg = null;
            Connection conn  = new Connection();

            try
            {
                conn.BeginTransaction();

                string encryptedPassword = objPasswordBL.GenerateHash(adminPWD);
                adminPWD = encryptedPassword;

                dvMsg = objAdmiDL.FetchAdminDetails(conn.con, conn.trans, adminUN, adminPWD);

                if (dvMsg.Count.Equals(0))
                {
                    return(dvMsg.Table.DefaultView);
                }

                return(dvMsg.Table.DefaultView);
            }
            catch (NullReferenceException ex)
            {
            }
            catch (Exception ex)
            {
            }
            return(dvMsg.Table.DefaultView);
        }