public ConfigurationItemsViewModel MapExisitingValues() { ConfigurationItemsViewModel model = new ConfigurationItemsViewModel(); model.LDAP = new LDAPConfigViewModel(); model.LDAP.Description = config.LDAP_DESCRIPTION; model.LDAP.Password = config.LDAP_PASSWORD; model.LDAP.Server = config.LDAP_SERVER; model.LDAP.Username = config.LDAP_USERNAME; model.LDAP.DaysValid = Convert.ToInt32(config.LDAP_DAYS_VALID); model.Email = new EmailConfigViewModel(); model.Email.AlertSubject = config.EMAIL_ALERT_SUBJECT; model.Email.AlertTemplatePath = config.EMAIL_ALERT_TEMPLATE_PATH; model.Email.Password = config.EMAIL_PASSWORD; model.Email.Port = config.EMAIL_PORT; model.Email.SenderAddress = config.EMAIL_SENDER; model.Email.Server = config.EMAIL_SERVER; model.Email.SSL = Convert.ToBoolean(config.EMAIL_SSL); model.Email.TeamAddress = config.EMAIL_CC; model.Email.TicketSubject = config.EMAIL_TICKET_SUBJECT; model.Email.TicketTemplatePath = config.EMAIL_TICKET_TEMPLATE_PATH; model.Email.Username = config.EMAIL_USERNAME; model.Email.HomeURL = config.FALCON_ORCHESTRATOR_URL; model.FalconStream = new FalconStreamingAPIConfigViewModel(); model.FalconStream.Url = config.FALCON_STREAM_URL; model.FalconStream.Uuid = config.FALCON_STREAM_UUID; model.FalconStream.Key = config.FALCON_STREAM_KEY; model.FalconStream.Offset = AppConfiguration.FALCON_STREAM_LAST_OFFSET; model.FalconForensics = new FalconForensicsConfigViewModel(); model.FalconForensics.Username = config.FALCON_FORENSICS_USERNAME; model.FalconForensics.Domain = config.FALCON_FORENSICS_DOMAIN; model.FalconForensics.Password = config.FALCON_FORENSICS_PASSWORD; model.FalconForensics.ZipPassword = config.FALCON_FORENSICS_ENCRYPTION_PASSWORD; model.FalconQuery = new FalconQueryAPIConfigViewModel(); model.FalconQuery.Url = config.FALCON_QUERY_URL; model.FalconQuery.Username = config.FALCON_QUERY_USERNAME; model.FalconQuery.Password = config.FALCON_QUERY_PASSWORD; model.ETLRules = new ETLRulesViewModel(); model.ETLRules.ADLookup = Convert.ToBoolean(config.RULE_AD_LOOKUP); model.ETLRules.AssignResponder = Convert.ToBoolean(config.RULE_ASSIGN_RESPONDER); model.ETLRules.Taxonomize = Convert.ToBoolean(config.RULE_TAXONOMIZE); model.ETLRules.Whitelisting = Convert.ToBoolean(config.RULE_WHITELISTING); model.ETLRules.DNSLookup = Convert.ToBoolean(config.RULE_DNS_LOOKUP); model.ETLRules.Notification = Convert.ToBoolean(config.RULE_NOTIFICATION); model.ETLRules.NotificationThreshold = config.RULE_NOTIFICATION_THRESHOLD; return(model); }
public ActionResult Index() { ConfigurationItemsViewModel model = repo.MapExisitingValues(); return(View(model)); }