public static void SaveActions(Action action) { if (action.Id == null) { _actionRepository.Insert(action); } else { _actionRepository.Update(action); } _actionRepository.SaveChangesAsync(); }
public static void SaveActions(Action action) { if (action.Id == null) { _actionRepository.Insert(action); } else { _actionRepository.Update(action); } _actionRepository.SaveChangesAsync(); }