This commit is contained in:
2020-07-26 22:05:42 -04:00
parent f2ca3419b0
commit 85d99d2615
4 changed files with 10 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ using System.Threading.Tasks;
namespace PartSource.Api.Controllers
{
[Route("[controller]")]
[Route("v1/[controller]")]
[ApiController]
public class InventoryController : BaseNexpartController
{
@@ -21,7 +22,7 @@ namespace PartSource.Api.Controllers
[Route("sku/{sku}/storeNumber/{storeNumber}")]
public async Task<ActionResult> GetInventory(int sku, int storeNumber)
{
PartsAvailability inventory = _inventoryService.GetInventory(sku, storeNumber);
PartsAvailability inventory = await _inventoryService.GetInventory(sku, storeNumber);
if (inventory == null)
{