示例#1
0
        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));
        }
示例#2
0
        public async Task <ActionResult> DetailsAsync(string id)
        {
            Item item = await DataBaseDocumentTasks <Item> .GetItemAsync(id);

            return(View(item));
        }