Example #1
0
        // Saida: SaidaNF
        public ActionResult New()
        {
            var viewModel = new SaidaNFFormViewModel()
            {
                saidaNF = new saidaNF()
            };

            return(View("SaidaNFForm", viewModel));
        }
Example #2
0
        // Edit: SaidaNF/id
        public ActionResult Edit(int id)
        {
            var saidaNF = _context.saidasNF.SingleOrDefault(s => s.sn_cod == id);

            if (saidaNF == null)
            {
                return(HttpNotFound());
            }
            var viewModel = new SaidaNFFormViewModel
            {
                saidaNF = saidaNF
            };

            return(View("SaidaNFForm", viewModel));
        }