public async Task <ActionResult> DeleteAsync(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Weather item = await DocDBClass <Weather> .GetItemAsync(id); if (item == null) { return(HttpNotFound()); } return(View(item)); }
public async Task <ActionResult> DetailsAsync(string id) { Weather item = await DocDBClass <Weather> .GetItemAsync(id); return(View(item)); }