public CategoriesProxyStub Categories_GetByPrimaryKey(System.Int32 categoryID) { Categories obj = new Categories(); if (obj.LoadByPrimaryKey(categoryID)) { return obj; } return null; }
public jsResponse<CategoriesCollection, Categories> Categories_LoadByPrimaryKey(System.Int32 categoryID) { jsResponse<CategoriesCollection, Categories> response = new jsResponse<CategoriesCollection, Categories>(); try { Categories entity = new Categories(); if (entity.LoadByPrimaryKey(categoryID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }