public Dictionary <string, List <ImportacaoEntity> > GetAll() { try { List <ImportacaoEntity> importacaos = new ImportacaoRepository().GetAll(); return(new Dictionary <string, List <ImportacaoEntity> >() { { "ativos", importacaos.Where(i => i.Ativo == true).ToList() }, { "inativos", importacaos.Where(i => i.Ativo == false).ToList() } }); } catch (Exception ex) { throw new Exception(ex.Message); } }
public ImportacaoService(INotification notification, ImportacaoRepository repository) : base(notification) { this._repository = repository; }
public ImportacaoBusiness() { Repository = new ImportacaoRepository(); }