This commit is contained in:
Thomas Fransolet 2023-12-22 15:59:41 +01:00
parent 04c6e01e50
commit 27e20568d8
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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);
}