using System.Collections.Generic;
namespace AyaNova.Biz
{
///
///
///
internal interface IBizObject
{
//validate via validation attributes
//https://stackoverflow.com/questions/36330981/is-the-validationresult-class-suitable-when-validating-the-state-of-an-object
///
/// Contains list of errors
///
List Errors { get; }
///
/// Is true if there are errors
///
bool HasErrors { get; }
///
/// Is true if the field specified exists in the list
///
bool PropertyHasErrors(string propertyName);
///
///
///
///
///
///
void AddError(ApiErrorCode errorCode, string propertyName = null, string errorMessage = null);
// ///
// ///
// ///
// ///
// void AddvalidationError(ValidationError validationError);
}
}