Exemple #1
0
        public void SetState(int assignmentId, EnumState state, EnumStateActionTaken action, string userName)
        {
            var itemState = new LeadAssignmentState
            {
                LeadAssignmentId = assignmentId,
                StateId          = state.ToString(),
                Actor            = userName,
                Action           = action.ToString(),
                ActionTimestamp  = DateHelper.Now
            };

            _context.LeadAssignmentStates.Add(itemState);
        }
Exemple #2
0
        public void SetState(Guid leadId, EnumState state, EnumStateActionTaken action, string userName)
        {
            var leadState = new LeadState()
            {
                LeadId          = leadId,
                StateId         = state.ToString(),
                Actor           = userName,
                Action          = action.ToString(),
                ActionTimestamp = DateHelper.Now
            };

            _context.LeadStates.Add(leadState);
        }