예제 #1
0
        public static void SaveActions(Action action)
        {
            if (action.Id == null)
            {
                _actionRepository.Insert(action);
            }
            else
            {
                _actionRepository.Update(action);
            }

            _actionRepository.SaveChangesAsync();
        }