get current directory path c# web application code example
Example: get execution directory c#
string logsDirectory = Path.Combine(Environment.CurrentDirectory, "logs");
string logsDirectory = Path.Combine(Environment.CurrentDirectory, "logs");