public async Task <ActionResult> DeleteAsync(string id) { if (id == null) { return(BadRequest()); } Item item = await DataBaseDocumentTasks <Item> .GetItemAsync(id); if (item == null) { return(NotFound()); } return(View(item)); }
public async Task <ActionResult> DetailsAsync(string id) { Item item = await DataBaseDocumentTasks <Item> .GetItemAsync(id); return(View(item)); }