public SueetieUrl GetSueetieUrl(string _name) { var _sueetieUrl = new SueetieUrl(); foreach (var url in _urls) { if (url.Name == _name) { _sueetieUrl = url; } } if (string.IsNullOrEmpty(_sueetieUrl.Name)) { SueetieLogs.LogException("SUEETIE URL " + _name + " was not found."); } return(_sueetieUrl); }
public SueetieUrl GetSueetieUrl(string _name, string[] args) { var _sueetieUrl = new SueetieUrl(); foreach (var url in _urls) { if (url.Name == _name) { url.Url = this.FormatUrl(url.Pattern, args); if (url.RewrittenUrl != null) { url.RewrittenUrl = this.FormatUrl(url.RewrittenUrl, args); } _sueetieUrl = url; } } if (string.IsNullOrEmpty(_sueetieUrl.Name)) { SueetieLogs.LogException("SUEETIE URL " + _name + " was not found."); } return(_sueetieUrl); }