Update src/Umbraco.Cms.Api.Management/Controllers/Document/ByKeyDocumentController.cs
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
@@ -22,7 +22,7 @@ public class ByKeyDocumentController : DocumentControllerBase
|
||||
[MapToApiVersion("1.0")]
|
||||
[ProducesResponseType(typeof(DocumentViewModel), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<ActionResult<DocumentViewModel>> ByKey(Guid key)
|
||||
public async Task<IActionResult> ByKey(Guid key)
|
||||
{
|
||||
IContent? content = _contentService.GetById(key);
|
||||
if (content == null)
|
||||
|
||||
Reference in New Issue
Block a user