As you know Server.MapPath is not available when you write code in Web API. There is an alternative way to get your site path application. You can alternatively use the following code to get the full path of your site root application.
var rootPath = System.Web.Hosting.HostingEnvironment.MapPath("~/PathGoesHere");