public List <ProductGroupModel> GetData() { string msgError = ""; try { System.Data.DataTable dt = _dbHelper.ExecuteSProcedureReturnDataTable(out msgError, "sp_item_group_get_data"); if (!string.IsNullOrEmpty(msgError)) { throw new Exception(msgError); } return(dt.ConvertTo <ProductGroupModel>().ToList()); } catch (Exception ex) { throw ex; } }