Esempio n. 1
0
        public async Task <ActionResult> EditAsync([Bind(Include = "Id,Name,Description,Completed")] Values_Audits item)
        {
            if (ModelState.IsValid)
            {
                await documentDb.UpdateItemAsync(item.Id, item);

                return(RedirectToAction("Index"));
            }

            return(View(item));
        }
Esempio n. 2
0
        public async Task <ActionResult> DeleteAsync(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Values_Audits item = await documentDb.GetItemAsync(id);

            if (item == null)
            {
                return(HttpNotFound());
            }

            return(View(item));
        }
Esempio n. 3
0
        public async Task <ActionResult> DetailsAsync(string id)
        {
            Values_Audits item = await documentDb.GetItemAsync(id);

            return(View(item));
        }