public async Task <ActionResult> Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Contact contact = await DbAdaptor.GetContactAsync(id); if (contact == null) { return(HttpNotFound()); } return(View(contact)); }
public async Task <ActionResult> Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Contact technology = await DbAdaptor.GetContactAsync(id); if (technology == null) { return(HttpNotFound()); } return(View(technology)); }