* 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>
15 lines
432 B
C#
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);
|
|
}
|