public async Task <IHttpActionResult> GetInventory(int id)
        {
            Inventory inventory = _repository.GetOne(id);

            if (inventory == null)
            {
                return(NotFound());
            }
            return(Ok(_mapper.Map <InventoryDto>(inventory)));
        }