public static string GetActionText(this MessageMaps action, LoginEvent evt)
        {
            if (action == null)
            {
                //log.Error(string.Format("There is no action text for \"{0}\" type of event", action));
                return(string.Empty);
            }

            try
            {
                var actionText = action.GetActionText();

                if (evt.Description == null || !evt.Description.Any())
                {
                    return(actionText);
                }

                var description = evt.Description
                                  .Select(t => t.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
                                  .Select(split => string.Join(", ", split.Select(ToLimitedText))).ToArray();

                return(string.Format(actionText, description));
            }
            catch
            {
                //log.Error(string.Format("Error while building action text for \"{0}\" type of event", action));
                return(string.Empty);
            }
        }
 public static string GetModuleText(this MessageMaps action)
 {
     return(action == null
                ? string.Empty
                : action.GetModuleText());
 }