DocSas/PropertyService.Domain/ModelView/property/PropertyProvider.cs
/// <summary>
/// Creates the name of the URL friendly property.
/// </summary>
/// <param name="propInforma">The property informa.</param>
/// <returns>System.String.</returns>
Creates the name of the URL friendly property.
Creates the name of the URL friendly property .
private string CreateUrlFriendlyPropertyName(PropertyInformation propInforma)
        {
            var result = string.Empty;
            var propName = propInforma.PropName.Trim();
            var propNameArray = propName.Split(new string[] { " ", "  " }, StringSplitOptions.RemoveEmptyEntries);
            foreach (var item in propNameArray)
            {
                result += item.Trim();
            }
            var city = propInforma.ZipCode.City.Trim().Replace(" ", "").Replace("  ", "");
            var province = propInforma.ZipCode.Province.Trim().Replace(" ", "").Replace("  ", "");
            result = string.Concat(result,"_",city, "_", province);
            return result;
        }
private string CreateUrlFriendlyPropertyName ( PropertyInformation propInforma ) { var result = string . Empty ; var propName = propInforma . PropName . Trim ( ) ; var propNameArray = propName . Split ( new string [ ] { " " , " " } , StringSplitOptions . RemoveEmptyEntries ) ; foreach ( var item in propNameArray ) { result += item . Trim ( ) ; } var city = propInforma . ZipCode . City . Trim ( ) . Replace ( " " , " " ) . Replace ( " " , " " ) ; var province = propInforma . ZipCode . Province . Trim ( ) . Replace ( " " , " " ) . Replace ( " " , " " ) ; result = string . Concat ( result , " " , city , " " , province ) ; return result ; }
Creates the name of the URL friendly property.
Creates the name of the URL friendly property .
None
propInforma
PropertyInformation
The property informa.
The property informa .