Manos.Mvc.ViewService.FindViewTemplate C# (CSharp) Method

FindViewTemplate() public method

public FindViewTemplate ( string view, string controller ) : string
view string
controller string
return string
        public string FindViewTemplate(string view, string controller)
        {
            foreach (var p in m_ViewPaths)
            {
                var resolved = Application.MapPath(p.Replace("{view}", view).Replace("{controller}", controller));
                if (System.IO.File.Exists(resolved))
                    return resolved;
            }

            return null;
        }