30 lines
583 B
C#
30 lines
583 B
C#
using SteamWare.Logger;
|
|
using System;
|
|
using System.Web;
|
|
|
|
|
|
namespace MagData
|
|
{
|
|
public class utils
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="filePath"></param>
|
|
/// <returns></returns>
|
|
public static string getPath(string filePath)
|
|
{
|
|
string answ = "";
|
|
try
|
|
{
|
|
answ = HttpContext.Current.Server.MapPath(filePath);
|
|
}
|
|
catch (Exception exc)
|
|
{
|
|
Logging.Instance.Error($"Eccezione in decodifica path in persorso relativo all'app:{Environment.NewLine}{exc}");
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
}
|