title: How pass dataset to WCF method as a parameter
body: <p>In there i used this code to read data of excel file and it's work for me properly. But i need to save this dataset to database with <code>WCF</code>. So think pass the <code>dataset</code> to wcf method to achieve this.But how can i do this </p>
  
  <p>this is i tried  code with windows form application </p>
  
  <pre><code> private void button1_Click(object sender, EventArgs e)
     {
         OpenFileDialog opn = new OpenFileDialog();
         opn.Filter = "Excel Files|*.xls;*.xlsx;*.xlsm";
  
          if (opn.ShowDialog() == DialogResult.Cancel)
              return;
  
              FileStream strm = new FileStream(opn.FileName, FileMode.Open);
              IExcelDataReader excldr = ExcelReaderFactory.CreateOpenXmlReader(strm);
  
              DataSet rslt = excldr.AsDataSet();
  
             // while (excldr.Read())
             // {
             //    Console.WriteLine(excldr.GetString(1));
             // }
    }
  </code></pre>
  
  <p>I need to pass <code>DataSet rslt</code> to <code>WCF</code> method and within <code>WCF</code> i think to write save data function.is this good practice or not ? So how i can i do this </p>