public async Task <IEnumerable <InventoryItemAlias> > SearchInventoryItemAlias(List <string> lst, List <string> includeLst = null) { using (var ctx = new InventoryItemAliasService()) { return(await ctx.GetInventoryItemAliasByExpressionLst(lst, includeLst).ConfigureAwait(false)); } }
public async Task SaveInventoryItemAlias(InventoryItemAlias i) { if (i == null) { return; } using (var ctx = new InventoryItemAliasService()) { await ctx.UpdateInventoryItemAlias(i).ConfigureAwait(false); } }