public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var vm = ServiceCall.FindImage(id); if (vm == null) { return(HttpNotFound()); } return(View(vm)); }