Example #1
0
        public async Task <IEnumerable <KeyValuePair <string, string> > > GetDocumentActivities(string personId)
        {
            try
            {
                IEnumerable <ActivityType> activityTypes = await _mgrFcc.GetDocumentActivities(personId);

                return(activityTypes
                       .Select(e => new KeyValuePair <string, string>(
                                   FccEnumHelper.GetLocalizedStringForEnumValue(e),
                                   ((int)e).ToString()
                                   )));
            }
            catch (Exception)
            {
                return(new List <KeyValuePair <string, string> >());
            }
        }