public void AddEditDel_Scrl_TagMaster(DO_TagMaster ObjScrl, TagMaster Flag) { SqlConnection conn = new SqlConnection(); SQLManager co = new SQLManager(); conn = co.GetConnection(); cmd = new SqlCommand("Scrl_AddEditDelTagMaster", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@FlagNo", SqlDbType.Int).Value = Flag; cmd.Parameters.Add("@Id", SqlDbType.Int).Value = ObjScrl.Id; cmd.Parameters.Add("@intTag", SqlDbType.Int).Value = ObjScrl.intTag; cmd.ExecuteNonQuery(); co.CloseConnection(conn); }
public DataTable GetDataTable(DO_TagMaster ObjScrl, TagMaster Flag) { DataTable dt = new DataTable(); SqlConnection conn = new SqlConnection(); SQLManager co = new SQLManager(); conn = co.GetConnection(); SqlDataAdapter da = new SqlDataAdapter("Scrl_AddEditDelTagMaster", conn); da.SelectCommand.CommandType = CommandType.StoredProcedure; da.SelectCommand.Parameters.Add("@FlagNo", SqlDbType.Int).Value = Flag; da.SelectCommand.Parameters.Add("@Id", SqlDbType.Int).Value = ObjScrl.Id; da.SelectCommand.Parameters.Add("@intTag", SqlDbType.Int).Value = ObjScrl.intTag; da.Fill(dt); co.CloseConnection(conn); return(dt); }