using GB5Shared.DTO.Framework.Login; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GB5Shared.Validation { public interface IValidation { Task NotNull(object value, string? fieldName = null); Task NotEmpty(string value, string? fieldName = null); Task NotNullOrEmpty(string? value, string? fieldName = null); Task MaxLength(string tableName, string columnName, string? value); Task Range(T min, T max, T value, string? fieldName = null) where T : IComparable; Task HandleException(Exception ex, string contextMessage = ""); } }