public async Task <Price> GetItemPriceByCodeAsync(long itemCode) { using (var context = new PriceCompareDbContext()) { var priceRep = new PriceRepository(context); return(await priceRep.GetItemPriceByCodeAsync(itemCode)); } }