예제 #1
0
        public ActionResult DeletarEstoque(int id, IFormCollection collection)
        {
            Models.Data.EstoqueData md = new Models.Data.EstoqueData();
            md.DeletarEstoque(id);

            return(RedirectToAction(nameof(ListaEstoque)));
        }
예제 #2
0
        public ActionResult CadastrarEstoque(Models.Estoque collection)
        {
            Models.Data.EstoqueData ed = new Models.Data.EstoqueData();
            ed.CadastrarEstoque(collection);

            return(RedirectToAction(nameof(ListaEstoque)));
        }
예제 #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)));
        }
예제 #4
0
        // GET: Estoque/Delete/5
        public ActionResult DeletarEstoque(int id)
        {
            Models.Data.EstoqueData ed = new Models.Data.EstoqueData();

            return(View(ed.DetalhesEstoque(id)));
        }
예제 #5
0
        public ActionResult ListaEstoque()
        {
            Models.Data.EstoqueData ed = new Models.Data.EstoqueData();

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