예제 #1
0
        private void CreateContact(Guid employerId, Guid memberId)
        {
            var exercisedCredit = new ExercisedCredit
            {
                ExercisedById = employerId,
                ExercisedOnId = memberId,
            };

            exercisedCredit.Prepare();
            _creditsRepository.CreateExercisedCredit(exercisedCredit);
        }
예제 #2
0
        private static ExercisedCredit CreateExercisedCredit(Guid allocationId, bool adjustAllocation, Guid exercisedById, Guid?exercisedOnId, Guid?referenceId)
        {
            var exercisedCredit = new ExercisedCredit
            {
                AllocationId       = allocationId,
                AdjustedAllocation = adjustAllocation,
                ExercisedById      = exercisedById,
                ExercisedOnId      = exercisedOnId == Guid.Empty ? null : exercisedOnId,
                ReferenceId        = referenceId
            };

            exercisedCredit.Prepare();
            return(exercisedCredit);
        }