public void ErrorCapture(string Message) { AddSerialDL productdal = new AddSerialDL(); productdal.ErrorCapture(Message); }