public static async Task <Item> GetAllItems(this ItemsDbContext ctx, Item item) { return(await ctx.Items.AllAsync(item)); }
public static async Task <Item> GetItem(this ItemsDbContext ctx, Item item) { return(await ctx.Items.FirstOrDefaultAsync(x => x.Itemid == item.Itemid)); }