using System; using System.Collections.Generic; using Gestor.Model.Domain.Generic; using Gestor.Model.Helper; using Gestor.Model.Resources; namespace Gestor.Model.Domain.Seguros; public class VendedorUsuario : DomainBase, IDomain { public Usuario Usuario { get; set; } public Vendedor Vendedor { get; set; } public Func>> ValidationEvent => Validate; public List> Validate() { List> list = ValidationHelper.AddValue(); if (Usuario == null) { list.AddValue("Usuario", Messages.Obrigatorio); } if (Vendedor == null) { list.AddValue("Vendedor", Messages.Obrigatorio); } return list; } }