コード例 #1
0
        public IActionResult Novo()
        {
            var tipos     = _tipoService.FindAll();
            var viewModel = new ProdutoFormViewModel {
                Tipos = tipos
            };

            return(View(viewModel));
        }
コード例 #2
0
        public IActionResult Index()
        {
            //List<Tipos> list = new List<Tipos>();
            var list = _tipoService.FindAll();

            return(View(list));
        }
コード例 #3
0
        public IActionResult Create()
        {
            var tipo      = _tipoService.FindAll();
            var viewModel = new LocalFormViewModel {
                Tipo = tipo
            };

            return(View(viewModel));
        }