// CONSTRUCTORS /// <summary> /// Initializes a new instance of <see cref="DeleteItemViewModel"/> /// </summary> /// <param name="entity"> /// An entity to delete /// </param> public DeleteItemViewModel(DataAccess.Interfaces.IEntity entity) { this.entity = entity; cancelCommand = new Commands.Admin.GoBackCommand(); acceptCommand = new Commands.Admin.DeleteItem.DeleteItemCommand(this); Logger.LogAsync(Core.LogMode.Debug, $"Initialize a new instance of {nameof(DeleteItemViewModel)}"); }
// CONSTRUCTORS /// <summary> /// Sets default value /// </summary> public AllItemViewModelBase() { selectedEntity = null; deleteCommand = new Commands.Admin.DeleteCommand(); setFilterCommand = new Commands.RelayCommand(SetFilterMethod); resetFilterCommand = new Commands.RelayCommand(ResetFilterMethod); }