HttpContext.Current.Server is there a better alternative?

Topics: Web Api
Dec 15, 2011 at 5:59 PM
Edited Dec 18, 2011 at 10:41 PM

What's the best to do something like the following from inside a web api service?

 var path = HttpContext.Current.Server.MapPath("setting.data");

 

ta

 

Ollie