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