public async Task <DataPortalResult> Update(object obj, DataPortalContext context, bool isSync) { var dp = new DataPortalSelector(); var result = await dp.Update(obj, context, isSync).ConfigureAwait(false); ApplicationContext.GlobalContext["CustomDataPortalServer"] = "Update Called"; return(result); }
public async Task <DataPortalResult> Create(Type objectType, object criteria, DataPortalContext context, bool isSync) { var dp = new DataPortalSelector(); var result = await dp.Create(objectType, criteria, context, isSync).ConfigureAwait(false); ApplicationContext.GlobalContext["CustomDataPortalServer"] = "Create Called"; return(result); }
public CustomDataPortalServer(DataPortalSelector dataPortalSelector) { _dataPortalSelector = dataPortalSelector; }