Add download links
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.Configuration;
|
||||
using LeafWeb.Core.Entities;
|
||||
|
||||
namespace LeafWeb.Web.Services
|
||||
{
|
||||
public class DownloadUrlService
|
||||
{
|
||||
private readonly string _downloadUrl;
|
||||
|
||||
public DownloadUrlService()
|
||||
{
|
||||
_downloadUrl =
|
||||
ConfigurationManager.AppSettings["LeafWebUrl"]
|
||||
+ ConfigurationManager.AppSettings["ResultsDownloadPath"];
|
||||
}
|
||||
|
||||
public string GetDownloadUrl(LeafInput leafInput)
|
||||
{
|
||||
return string.Format(_downloadUrl, leafInput.UniqueToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user