Ejemplo n.º 1
0
        public ActionResult DeletarEstoque(int id, IFormCollection collection)
        {
            Models.Data.EstoqueData md = new Models.Data.EstoqueData();
            md.DeletarEstoque(id);

            return(RedirectToAction(nameof(ListaEstoque)));
        }
Ejemplo n.º 2
0
        public ActionResult CadastrarEstoque(Models.Estoque collection)
        {
            Models.Data.EstoqueData ed = new Models.Data.EstoqueData();
            ed.CadastrarEstoque(collection);

            return(RedirectToAction(nameof(ListaEstoque)));
        }
Ejemplo n.º 3
0
        public ActionResult EditarEstoque(int id, Models.Estoque collection)
        {
            Models.Data.EstoqueData ed = new Models.Data.EstoqueData();
            ed.EditarEstoque(collection);

            return(RedirectToAction(nameof(ListaEstoque)));
        }
Ejemplo n.º 4
0
        // GET: Estoque/Delete/5
        public ActionResult DeletarEstoque(int id)
        {
            Models.Data.EstoqueData ed = new Models.Data.EstoqueData();

            return(View(ed.DetalhesEstoque(id)));
        }
Ejemplo n.º 5
0
        public ActionResult ListaEstoque()
        {
            Models.Data.EstoqueData ed = new Models.Data.EstoqueData();

            return(View(ed.ListaEstoque()));
        }