private void CreateContact(Guid employerId, Guid memberId) { var exercisedCredit = new ExercisedCredit { ExercisedById = employerId, ExercisedOnId = memberId, }; exercisedCredit.Prepare(); _creditsRepository.CreateExercisedCredit(exercisedCredit); }
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); }