public async Task <ActionResult> Edit([Bind(Include = "PropertyId,ItemId,OldPropertyId,OldItemId")] PropertyItem propertyItem) { if (ModelState.IsValid) { var canChange = await propertyItem.CanChange(db); if (canChange) { await propertyItem.Change(db); } return(RedirectToAction("Index")); } return(View(propertyItem)); }