public SuppliersProxyStub Suppliers_GetByPrimaryKey(System.Int32 supplierID) { Suppliers obj = new Suppliers(); if (obj.LoadByPrimaryKey(supplierID)) { return obj; } return null; }
public jsResponse<SuppliersCollection, Suppliers> Suppliers_LoadByPrimaryKey(System.Int32 supplierID) { jsResponse<SuppliersCollection, Suppliers> response = new jsResponse<SuppliersCollection, Suppliers>(); try { Suppliers entity = new Suppliers(); if (entity.LoadByPrimaryKey(supplierID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }