Fix resource bug
This commit is contained in:
parent
86ad5a2792
commit
f55d4aefcd
@ -75,7 +75,7 @@ namespace ManagerService.Controllers
|
|||||||
if (resource == null)
|
if (resource == null)
|
||||||
throw new KeyNotFoundException("This resource was not found");
|
throw new KeyNotFoundException("This resource was not found");
|
||||||
|
|
||||||
return new OkObjectResult(resource.ToDTO());
|
return new OkObjectResult(resource.ToDTO(resource.Type == ResourceType.ImageUrl));
|
||||||
}
|
}
|
||||||
catch (KeyNotFoundException ex)
|
catch (KeyNotFoundException ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user