コード例 #1
0
        public MailModel GetAll()
        {
            var model = new MailModel
            {
                Rows = EmailRepository.GetAll(),
            };

            return(model);
        }
コード例 #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();
        }
コード例 #3
0
 public IEnumerable <EmailModel> GetAllEmail()
 {
     return(repo.GetAll());
 }