public virtual object Execute(CommandContext commandContext) { IPropertyManager propertyManager = commandContext.PropertyManager; PropertyEntity propertyEntity = propertyManager.FindPropertyById(Name); if (propertyEntity != null) { propertyManager.Delete(propertyEntity); } return(null); }
public void RemoveProperty(int id) { propertyManager.Delete(id); }
public async Task <ActionResult> DeleteConfirmed(int id) { await _propertyManager.Delete(id); return(RedirectToAction("Index")); }