Esempio n. 1
0
        public IndexEmailModel GetAll()
        {
            IndexEmailModel model = new IndexEmailModel();

            model.lstEmails     = _iEmailRepository.GetAllEmails().UseAsDataSource(Mapper.Configuration).For <EmailViewModel>().ToList();
            model.lstSentEmails = _iEmailRepository.GetAllSentEmails().UseAsDataSource(Mapper.Configuration).For <SentEmailViewModel>().ToList();
            model.SentEmail     = new SentEmailViewModel();
            model.Email         = new EmailViewModel();
            return(model);
        }