Added maintenances contact
Fix offsets
This commit is contained in:
@@ -346,10 +346,21 @@ namespace Step.Config
|
||||
// Get Maintenances file handler
|
||||
XDocument xmlConfigFile = GetXmlHandlerWithValidator(MAINTENANCES_CONFIG_SCHEMA_PATH, MAINTENANCES_CONFIG_PATH);
|
||||
|
||||
MaintenancesConfig = xmlConfigFile
|
||||
.Root
|
||||
.Elements()
|
||||
.ToList()
|
||||
ContactConfig = xmlConfigFile
|
||||
.Descendants("contact")
|
||||
.Select(x =>
|
||||
new ContactModel()
|
||||
{
|
||||
Name = x.Element("name").Value,
|
||||
Email = x.Element("email").Value,
|
||||
PhoneNumber = x.Element("phoneNumber").Value
|
||||
})
|
||||
.FirstOrDefault();
|
||||
|
||||
|
||||
MaintenancesConfig = xmlConfigFile
|
||||
.Descendants("maintenances")
|
||||
.Elements("maintenance")
|
||||
.Select(x =>
|
||||
new MaintenanceConfigModel()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user