public ProductsProxyStub Products_GetByPrimaryKey(System.Int32 productID) { Products obj = new Products(); if (obj.LoadByPrimaryKey(productID)) { return obj; } return null; }
public jsResponse<ProductsCollection, Products> Products_LoadByPrimaryKey(System.Int32 productID) { jsResponse<ProductsCollection, Products> response = new jsResponse<ProductsCollection, Products>(); try { Products entity = new Products(); if (entity.LoadByPrimaryKey(productID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }