public static int Add(string bll, DataTable dt) { //ChatCallBack callBack = new ChatCallBack(); //InstanceContext instance = new InstanceContext(callBack); ServiceReference1.FileTransportServiceClient ft = new ServiceReference1.FileTransportServiceClient(); try { return(ft.Add(bll, "AddByDt", dt)); } catch (Exception ex) { return(0); } finally { ft.Close(); } }