using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Kreta.Core;
using Kreta.Resources;
using KretaValidate = Kreta.Core.Validation.Exceptions;
using KretaValidateEnum = Kreta.Core.Validation.Exceptions.Enum;
namespace Kreta.BusinessLogic.Validation
{
///
/// Validates the models with "DataAnnotationAttributes" and gives You the option
/// to create custom validation if model implements the "IValidatableObject" interface.
///
public class BlValidator
{
public static implicit operator string(BlValidator blValidator)
=> blValidator.GetFirstUserFriendlyError();
public readonly List ErrorList = new List();
public readonly bool IsValid;
//TODO devkornel: Megcsinálni List