예제 #1
0
        public async Task <IActionResult> GetSeoDuplicates(string objectId, string objectType)
        {
            var seoDuplicates = await _seoService.GetAllSeoDuplicatesAsync();

            var retVal = await _seoDuplicateDetector.DetectSeoDuplicatesAsync(objectType, objectId, seoDuplicates);

            return(Ok(retVal.ToArray()));
        }
예제 #2
0
        public async Task <ActionResult <SeoInfo[]> > GetSeoDuplicates(string objectId, string objectType)
        {
            var result = await _seoDuplicateDetector.DetectSeoDuplicatesAsync(new TenantIdentity(objectId, objectType));

            return(Ok(result.ToArray()));
        }