public Startup(IHostingEnvironment hostingEnvironment) { Environment = hostingEnvironment; var builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile($"appsettings.{hostingEnvironment.EnvironmentName}.json", true, true); Configuration = builder.Build(); authApplication = new AuthApplication(Configuration, Environment); }
public static AuthApplication ToEntity(this AuthApplicationMsg msg) { AuthApplication entity = null; if (msg != null) { entity = new AuthApplication() { Id = msg.Id, Name = msg.Name, DefaultLanguage = msg.DefaultLanguage, }; } return(entity); }
public AuthController() { this.authApplication = new AuthApplication(); this.userApplication = new UserApplication(); }