public OrderDetailsProxyStub OrderDetails_GetByPrimaryKey(System.Int32 orderID, System.Int32 productID) { OrderDetails obj = new OrderDetails(); if (obj.LoadByPrimaryKey(orderID, productID)) { return obj; } return null; }
public jsResponse<OrderDetailsCollection, OrderDetails> OrderDetails_LoadByPrimaryKey(System.Int32 orderID, System.Int32 productID) { jsResponse<OrderDetailsCollection, OrderDetails> response = new jsResponse<OrderDetailsCollection, OrderDetails>(); try { OrderDetails entity = new OrderDetails(); if (entity.LoadByPrimaryKey(orderID, productID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }