Example #1
0
        public string pdataInsertDAL(pdataBAL pBAL)
        {
            DbConnector dbc = new DbConnector();

            dbc.mycon();
            dbc.cmd = new SqlCommand("Insert into pdata values(@nm,@cif,@pr,@od)", dbc.con);
            dbc.cmd.Parameters.AddWithValue("@nm", pBAL.name);
            dbc.cmd.Parameters.AddWithValue("@cif", pBAL.cif);
            dbc.cmd.Parameters.AddWithValue("@pr", pBAL.price);
            dbc.cmd.Parameters.AddWithValue("@od", pBAL.opdate);
            dbc.cmd.ExecuteNonQuery();
            return("Data Inserted Succesffully");
        }
Example #2
0
        public string pdataInsertBLL(pdataBAL pBAL)
        {
            pdataDAL pDAL = new pdataDAL();

            return(pDAL.pdataInsertDAL(pBAL));
        }