public async Task <ActionResult> Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Students student = await StudentDocumentDB <Students> .GetStudent(id); if (student == null) { return(HttpNotFound()); } return(View(student)); }
public async Task <ActionResult> Details(string id) { Students student = await StudentDocumentDB <Students> .GetStudent(id); return(View(student)); }