Esempio n. 1
0
        public virtual object Execute(CommandContext commandContext)
        {
            IPropertyManager propertyManager = commandContext.PropertyManager;

            PropertyEntity propertyEntity = propertyManager.FindPropertyById(Name);

            if (propertyEntity != null)
            {
                propertyManager.Delete(propertyEntity);
            }

            return(null);
        }
Esempio n. 2
0
 public void RemoveProperty(int id)
 {
     propertyManager.Delete(id);
 }
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            await _propertyManager.Delete(id);

            return(RedirectToAction("Index"));
        }