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