예제 #1
0
        public IActionResult Edit(int Id)
        {
            if (Id == null)
            {
                return(NotFound());
            }

            var obj = _estoqueService.FindById(Id);

            ViewBag.IdSetor = _setorService.FindAll();

            return(View(obj));
        }
예제 #2
0
        public IActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            //se for valido o ID
            var estoque = _estoqueService.FindById(id.Value);

            if (estoque == null)
            {
                return(NotFound());
            }

            return(View(estoque));
        }