public static void GetProduct() { try { Product_DA _objDa = new Product_DA(); DataSet _ds = _objDa.Product_GetAll(); c_lst_Product = NaviCommon.CBO <Product_Info> .FillCollectionFromDataSet(_ds); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } }
public byte[] Product_GetAll() { try { Product_DA _objDA = new Product_DA(); DataSet _ds = _objDA.Product_GetAll(); return(CompressionHelper.CompressDataSet(_ds)); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); return(new byte[0]); } }