private async Task <IHttpActionResult> Storage(IStorageItem item) { if (item.CanGetUri) { var uri = await item.GetUri(); if (uri != null) { return(Redirect(uri)); } } else { var stream = await item.Get(); if (stream != null) { return(Ok(new StreamContent(stream))); } } return(NotFound()); }