Beispiel #1
0
        public IActionResult Update(int id, Procedimento e)
        {
            e.Id = id;

            if (!ModelState.IsValid)
            {
                return(View(e));
            }

            using (var data = new ProcedimentoData())
                data.Update(e);

            return(RedirectToAction("Index"));
        }