using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace WebAPI { public class ServerUtils { public static string MapPath(string path) { return Path.Combine( (string)AppDomain.CurrentDomain.GetData("ContentRootPath"), path); } } }