Beispiel #1
0
        public List <Plano> ObterPlanos()
        {
            var planos = _planoRepository.ObterTodos().OrderBy(x => x.Valor).ToList();

            if (planos == null)
            {
                return(null);
            }
            return(planos);
        }
 public async Task <IActionResult> Index()
 {
     return(View(_mapper.Map <IEnumerable <PlanoViewModel> >(await _planoRepository.ObterTodos())));
 }