Check out example codes for "c# mvc get current directory". It will help you in understanding the concepts better.

Code Example 1

string path = ControllerContext.HttpContext.Server.MapPath("~/_xslt/example.xslt");
...

Learn ReactJs, React Native from akashmittal.com