Example #1
0
        /// <summary>
        /// Возвращает фио в международном формате
        /// </summary>
        /// <returns></returns>
        public string GetFioInternation()
        {
            var sb = new StringBuilder();

            sb.Append(FirstName);
            if (!String.IsNullOrEmpty(SurName))
            {
                sb.AppendFormat(" {0}", SurName.First());
            }
            if (!String.IsNullOrEmpty(LastName))
            {
                sb.AppendFormat(" {0}", LastName);
            }
            return(sb.ToString().Transliterate());
        }
Example #2
0
        /// <summary>
        /// Возвращает ФИО в сокращенном формате
        /// </summary>
        /// <returns></returns>
        public string GetFioSmall()
        {
            var sb = new StringBuilder();

            sb.Append(LastName);
            if (!String.IsNullOrEmpty(FirstName))
            {
                sb.AppendFormat(" {0}.", FirstName.First());
            }
            if (!String.IsNullOrEmpty(SurName))
            {
                sb.AppendFormat(" {0}.", SurName.First());
            }
            return(sb.ToString());
        }