update get resource to send data if url type

This commit is contained in:
Thomas Fransolet 2021-05-12 18:56:18 +02:00
parent fed416d078
commit 209217ede8
2 changed files with 3 additions and 1 deletions

View File

@ -10,5 +10,6 @@ namespace Manager.Interfaces.DTO
public string Id { get; set; }
public ResourceType Type { get; set; }
public string Label { get; set; }
public string Data { get; set; }
}
}

View File

@ -37,7 +37,8 @@ namespace Manager.Interfaces.Models
{
Id = Id,
Label = Label,
Type = Type
Type = Type,
Data = Type != ResourceType.Image ? Data : null,
};
}