public Task <Product?> GetAsync(int id) { return(DataInvoker.Current.InvokeAsync(this, async() => { var __dataArgs = ODataMapper.Default.CreateArgs("Products"); return await _odata.GetAsync(__dataArgs, id).ConfigureAwait(false); })); }
public Task <Product?> GetAsync(int id) => DataInvoker.Current.InvokeAsync(this, async() => { var __dataArgs = ODataArgs.Create(_mapper, "Products"); return(await _odata.GetAsync <Product, Model.Product>(__dataArgs, id).ConfigureAwait(false)); });