public async Task <ActionResult <RetrievalResult <DocumentType> > > GetDocumentTypesAsync([FromQuery] int?docTypeId, [FromQuery] string name, [FromQuery] string description) { var userIdClaimed = HttpContext.User.Identity.GetUserIdClaim(); if (userIdClaimed is null) { return(BadRequest()); } var retrievalResult = await _documentTypeService.RetrieveDocumentTypeAsync(userIdClaimed.Value, docTypeId, name, description); return(Ok(retrievalResult)); }