Skip to content

Commit db11db4

Browse files
msohailhussainMichael Ng
authored andcommitted
fix: Class Config conflicts with namespace. (#178)
1 parent d47df4e commit db11db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OptimizelySDK.DemoApp/Controllers/DemoController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class DemoController : Controller
4444
new Visitor { Id = 5, Name = "Randall", Age = 29 },
4545
};
4646

47-
private static Config ConfigRepo = new Config();
47+
private static Models.Config ConfigRepo = new Models.Config();
4848
private static Optimizely Optimizely = null;
4949
private static InMemoryHandler InMemoryHandler = new InMemoryHandler();
5050
private static Logger.ILogger Logger = new MultiLogger(new[] { new Logger.DefaultLogger(), (Logger.ILogger)InMemoryHandler, new Log4NetLogger() });
@@ -76,7 +76,7 @@ public ActionResult Config()
7676
}
7777

7878
[HttpPost]
79-
public ActionResult Config(Config config)
79+
public ActionResult Config(Models.Config config)
8080
{
8181
ConfigRepo = config;
8282
string url = string.Format("https://cdn.optimizely.com/json/{0}.json", config.ProjectId);

0 commit comments

Comments
 (0)