update get resource to send data if url type
This commit is contained in:
parent
fed416d078
commit
209217ede8
@ -10,5 +10,6 @@ namespace Manager.Interfaces.DTO
|
|||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
public ResourceType Type { get; set; }
|
public ResourceType Type { get; set; }
|
||||||
public string Label { get; set; }
|
public string Label { get; set; }
|
||||||
|
public string Data { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,7 +37,8 @@ namespace Manager.Interfaces.Models
|
|||||||
{
|
{
|
||||||
Id = Id,
|
Id = Id,
|
||||||
Label = Label,
|
Label = Label,
|
||||||
Type = Type
|
Type = Type,
|
||||||
|
Data = Type != ResourceType.Image ? Data : null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user