protected void lbDelete_Click(object sender, EventArgs e) { ImageButton linkButton = new ImageButton(); linkButton = (ImageButton)sender; bool result = PropertyManager.DeleteProperty(Convert.ToInt32(linkButton.CommandArgument)); showPropertyGrid(); }
public ActionResult DeleteProperty(long propertyId) { PropertyManager.DeleteProperty(propertyId); return(RedirectToAction("Index")); }