Files
Umbraco-CMS/src/Umbraco.Core/Services/IIsoCodeValidator.cs
Mole 21b0a7ffae New Backoffice: Fix feedback to users controller (#14031)
* Add specific not found results

* Add tests for the enable/disable not found tweak

* Cache ids and key in UserIdKeyResolver

* Don't cache null keys

* BackOffice not Backoffice

* Move fetching the user out of the ChangePasswordUsersController

* Move resolving user out of SetAvatar

* Move resolving user out of Update

* Return more specific notfound in bykey

* Use ErrorResult for all endpoints with unknown errors

* Split integration tests

* Add mappers

* Use ?: consistently

* Add reuseable iso code validator

* Validate ISO code

* Update supressions

* Use method from base to get current user key

* Rename ISo to Iso

* Use keys in services instead of user groups + Added a couple of new validations

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2023-04-04 15:41:12 +02:00

15 lines
432 B
C#

namespace Umbraco.Cms.Core.Services;
/// <summary>
/// A validator for validating if an ISO code string can be is valid.
/// </summary>
public interface IIsoCodeValidator
{
/// <summary>
/// Validates that a string is a valid ISO code.
/// </summary>
/// <param name="isoCode">The string to validate.</param>
/// <returns>True if the string is a valid ISO code.</returns>
bool IsValid(string isoCode);
}