public RegionProxyStub Region_GetByPrimaryKey(System.Int32 regionID) { Region obj = new Region(); if (obj.LoadByPrimaryKey(regionID)) { return obj; } return null; }
public jsResponse<RegionCollection, Region> Region_LoadByPrimaryKey(System.Int32 regionID) { jsResponse<RegionCollection, Region> response = new jsResponse<RegionCollection, Region>(); try { Region entity = new Region(); if (entity.LoadByPrimaryKey(regionID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }