public async Task <IActionResult> GetItem([FromRoute] string id) { var item = await inventoryProvider.GetItem(id); if (item == null) { return(NotFound("Not found")); } var itemViewModel = mapper.Map <ItemViewModel>(item); return(Ok(itemViewModel)); }