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