This object acts as a base object for all Models used in the Bf2Stats views
Example #1
0
 /// <summary>
 /// This method will reformat all base url's to point to the requested
 /// hostname and bf2stats querypath.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="Model"></param>
 /// <returns></returns>
 protected string CorrectUrls(string source, BF2PageModel Model)
 {
     return(Regex.Replace(source, "http://.*?/Bf2stats", Model.Root, RegexOptions.IgnoreCase));
 }
 /// <summary>
 /// This method will reformat all base url's to point to the requested
 /// hostname and bf2stats querypath.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="Model"></param>
 /// <returns></returns>
 protected string CorrectUrls(string source, BF2PageModel Model)
 {
     return Regex.Replace(source, "http://.*?/Bf2stats", Model.Root, RegexOptions.IgnoreCase);
 }