Mike Battista 2023-04-04 12:10:12 -07:00
Родитель 37125a8883 fbcfcc9a07
Коммит 3f7da10939
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -49,7 +49,7 @@ public class PageService : IPageService
}
var type = typeof(V);
if (_pages.Any(p => p.Value == type))
if (_pages.ContainsValue(type))
{
throw new ArgumentException($"This type is already configured with key {_pages.First(p => p.Value == type).Key}");
}

Просмотреть файл

@ -41,7 +41,7 @@ public class PageService : IPageService
}
var type = typeof(V);
if (_pages.Any(p => p.Value == type))
if (_pages.ContainsValue(type))
{
throw new ArgumentException($"This type is already configured with key {_pages.First(p => p.Value == type).Key}");
}