More improvements to registration, leaf input create, and charting
This commit is contained in:
@@ -8,6 +8,7 @@ namespace LeafWeb.WebCms.Services
|
||||
public class UrlService
|
||||
{
|
||||
private readonly string _downloadUrl;
|
||||
private readonly string _chartUrl;
|
||||
private readonly string _verifyEmailUrl;
|
||||
|
||||
public UrlService()
|
||||
@@ -16,6 +17,10 @@ namespace LeafWeb.WebCms.Services
|
||||
ConfigurationManager.AppSettings["LeafWebUrl"]
|
||||
+ ConfigurationManager.AppSettings["ResultsDownloadPath"];
|
||||
|
||||
_chartUrl =
|
||||
ConfigurationManager.AppSettings["LeafWebUrl"]
|
||||
+ ConfigurationManager.AppSettings["ChartPath"];
|
||||
|
||||
_verifyEmailUrl =
|
||||
ConfigurationManager.AppSettings["LeafWebUrl"]
|
||||
+ ConfigurationManager.AppSettings["MemberVerifyPath"];
|
||||
@@ -26,6 +31,11 @@ namespace LeafWeb.WebCms.Services
|
||||
return string.Format(_downloadUrl, leafInput.UniqueToken);
|
||||
}
|
||||
|
||||
public string GetChartUrl(LeafInput leafInput)
|
||||
{
|
||||
return string.Format(_chartUrl, leafInput.UniqueToken);
|
||||
}
|
||||
|
||||
public string GetVerifyEmailURl(IMember member)
|
||||
{
|
||||
var memberEmail = member.Email;
|
||||
|
||||
Reference in New Issue
Block a user