public ApprovalWFApprover()
 {
     SpecificUserGroup = new List<string>();
     ManagerApprove = false;
     UpdateProperties = new List<string>();
     TaskEvents = new TaskEventSettings();
 }
        private TaskEventSetting getEditingTaskEvent()
        {
            string session = Request["session"] as string;
            TaskEventSettings settings = Session[session] as TaskEventSettings;
            if (settings == null)
            {
                settings = new TaskEventSettings();
            }

            TaskEventTypes editType = (TaskEventTypes)Enum.Parse(typeof(TaskEventTypes), Request["type"] as string);
            TaskEventSetting editEvent = settings.Events.Where(p => p.Type == editType).SingleOrDefault();
            if (editEvent == null)
            {
                editEvent = new TaskEventSetting()
                {
                    Type = editType,
                };
                settings.Events.Add(editEvent);
                Session[session] = settings;
            }
            return editEvent;
        }