public IActionResult Novo() { var tipos = _tipoService.FindAll(); var viewModel = new ProdutoFormViewModel { Tipos = tipos }; return(View(viewModel)); }
public IActionResult Index() { //List<Tipos> list = new List<Tipos>(); var list = _tipoService.FindAll(); return(View(list)); }
public IActionResult Create() { var tipo = _tipoService.FindAll(); var viewModel = new LocalFormViewModel { Tipo = tipo }; return(View(viewModel)); }