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); }
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); }