Exemplo n.º 1
0
        public GetEmailsResponse GetEmails()
        {
            GetEmailsResponse response = new GetEmailsResponse();

            try
            {
                IEnumerable <EmailView> emails = _emailRepository.FindAll()
                                                 .ConvertToEmailViews();

                response.EmailViews = emails;
            }
            catch (Exception ex)
            {
            }

            return(response);
        }