// GET: Admin/PropertyItem/Edit/5 public async Task <ActionResult> Edit(int?itemId, int?propertyId) { if (itemId == null || propertyId == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PropertyItem propertyItem = await GetPropertyItem(itemId, propertyId); if (propertyItem == null) { return(HttpNotFound()); } return(View(await propertyItem.Convert(db))); }