public async Task <IActionResult> EditInstagramPhoto(int?id) { if (!id.HasValue) { return(NotFound()); } var item = await _wpbService.GetInstagramItemAsync(id.Value); if (item != null) { await _wpbService.DeleteInstagramItemtAsync(item); return(View(item)); } else { return(NotFound()); } }