예제 #1
0
        private void OnCookingStepRemoving(CookingStepRemoving message)
        {
            var step = Steps.FirstOrDefault(x => x.Id == message.Id);

            if (step == null)
            {
                return;
            }
            Steps.Remove(step);
            UpdatePositions(Steps);
        }
        private void Delete()
        {
            var message = new CookingStepRemoving(this, Id);

            _messenger.Publish(message);
        }