private void InitializeEditUnitCommand() { EditUnitCommand = new RelayCommand <object>( sender => { return(true); }, sender => { if (string.IsNullOrEmpty(DisplayUnitName) || SelectedUnitItem == null) { return; } unitService.EditUnit(SelectedUnitItem.DisplayName, DisplayUnitName); UnitList = unitService.GetListUnit(); }); }