Framework.Core.Utilities.Email.MailTemplate.GetFullTemplatePath C# (CSharp) Method

GetFullTemplatePath() private method

Gets the full template path.
private GetFullTemplatePath ( String path ) : String
path String The path.
return String
        private String GetFullTemplatePath(String path)
        {
            if (File.Exists(path))
            {
                return path;
            }

            if (HttpContext.Current != null)
            {
                return Path.Combine(HttpContext.Current.Server.MapPath("~/"), TemplateDirectory + path);
            }

            return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, TemplateDirectory + path);
        }