diff --git a/Manager.Interfaces/DTO/SectionDTO.cs b/Manager.Interfaces/DTO/SectionDTO.cs index a8610ba..096c828 100644 --- a/Manager.Interfaces/DTO/SectionDTO.cs +++ b/Manager.Interfaces/DTO/SectionDTO.cs @@ -19,7 +19,7 @@ namespace Manager.Interfaces.DTO public SectionType type { get; set; } // !! If IsSubSection == true => Type can't not be menu ! public string data { get; set; } // == Include section type info public DateTime dateCreation { get; set; } // == Include section type info - public int order { get; set; } // Order to show + public int? order { get; set; } // Order to show public string instanceId { get; set; } public string latitude { get; set; } // MyVisit - Use to launch automatic content when current location is near public string longitude { get; set; } // MyVisit - Use to launch automatic content when current location is near diff --git a/Manager.Interfaces/DTO/SubSection/MapDTO.cs b/Manager.Interfaces/DTO/SubSection/MapDTO.cs index 76212ec..2e43033 100644 --- a/Manager.Interfaces/DTO/SubSection/MapDTO.cs +++ b/Manager.Interfaces/DTO/SubSection/MapDTO.cs @@ -37,7 +37,7 @@ namespace Manager.Interfaces.DTO public string resourceId { get; set; } public ResourceType resourceType { get; set; } public string resourceUrl { get; set; } // url to firebase storage or on internet - public string latitude { get; set; } + public string resourceName { get; set; } } public enum MapTypeApp diff --git a/ManagerService/Controllers/ConfigurationController.cs b/ManagerService/Controllers/ConfigurationController.cs index e06fc07..dcd0bf4 100644 --- a/ManagerService/Controllers/ConfigurationController.cs +++ b/ManagerService/Controllers/ConfigurationController.cs @@ -526,7 +526,7 @@ namespace ManagerService.Controllers newSection.Label = section.label; newSection.Title = section.title; newSection.Description = section.description; - newSection.Order = section.order; // if one day we can use same section in multiple configuration, need to change that + newSection.Order = section.order.GetValueOrDefault(); // if one day we can use same section in multiple configuration, need to change that newSection.Type = section.type; newSection.ImageId = section.imageId; newSection.ImageSource = section.imageSource; diff --git a/ManagerService/Controllers/SectionController.cs b/ManagerService/Controllers/SectionController.cs index 77620b5..e524435 100644 --- a/ManagerService/Controllers/SectionController.cs +++ b/ManagerService/Controllers/SectionController.cs @@ -576,7 +576,7 @@ namespace ManagerService.Controllers foreach (var updatedSection in updatedSectionsOrder) { Section section = _sectionService.GetById(updatedSection.id); - section.Order = updatedSection.order; + section.Order = updatedSection.order.GetValueOrDefault(); _sectionService.Update(section.Id, section); }