Exemplo n.º 1
0
        public MailModel GetAll()
        {
            var model = new MailModel
            {
                Rows = EmailRepository.GetAll(),
            };

            return(model);
        }
Exemplo n.º 2
0
        protected override void CopyTypeMismatchingEntityParameters(EntityType entity, DtoType dto)
        {
            var emails           = emailRepository.GetAll(email => email.ActorType == (int)ActorType.User && email.ActorId == entity.Id);
            var telephoneNumbers = telephoneNumberRepository.GetAll(telephoneNumber => telephoneNumber.ActorType == (int)ActorType.User && telephoneNumber.ActorId == entity.Id);
            var addresses        = addressRepository.GetAll(address => address.EntityType == (int)Interfaces.Enums.EntityType.User && address.EntityId == entity.Id);

            dto.Contacts = emails;
            dto.Contacts.Concat(telephoneNumbers);
            dto.Contacts.Concat(addresses);
            dto.Groups = entity.Groups.Select(groupConverter.ToDto).ToList();
        }
 public IEnumerable <EmailModel> GetAllEmail()
 {
     return(repo.GetAll());
 }