public bsAdministrator bs_BalWyswietlLoginAdmina(string bs_login_par, string bs_haslo_par)
    {
        bsAdministrator bs_admin = new bsAdministrator();
        DataTable       bs_dt    = new DataTable();

        bs_dt = bs_warstwa_dostepu.bs_DalWyswietlLoginAdmina(bs_login_par, bs_haslo_par);
        foreach (DataRow bs_dr in bs_dt.Rows)
        {
            bs_admin.bsLoginAdmin = bs_dr["bsLoginAdmin"].ToString();
        }
        return(bs_admin);
    }
Exemple #2
0
    public bsAdministrator bs_BalWyswietlLoginAdmina(string bs_login_par, string bs_haslo_par)
    {
        //bsKlasaUsera bs_obiekt_uzytkownika = new bsKlasaUsera();
        bsAdministrator bs_admin = new bsAdministrator();
        DataTable       bs_dt    = new DataTable();

        bs_dt = bs_warstwa_dostepu.bs_DalWyswietlLoginAdmina(bs_login_par, bs_haslo_par);
        foreach (DataRow bs_dr in bs_dt.Rows)
        {
            bs_admin.bsLoginAdmin = bs_dr["bsLoginAdmin"].ToString();
            //bs_admin.bsHasloAdmin = bs_dr["bsHasloAdmin"].ToString();
            //bs_obiekt_uzytkownika.bsLoginUsera = bs_dr["bsLoginAdmin"].ToString();
        }
        //bs_DataAccessLayer bs_warstwa_dostepu = new bs_DataAccessLayer();
        //string bs_zapytanie = "select bs_Id_user, bs_Login from bs_Uzytkownicy where bs_Login=@bs_Login";

        return(bs_admin);
    }