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)); }
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)); }
public async Task <ActionResult> DetailsAsync(string id) { Values_Audits item = await documentDb.GetItemAsync(id); return(View(item)); }