Exemplo n.º 1
0
        public ActionResult Edit(int id, Departamento collection, int sucursal)
        {
            try
            {
                collection.Descripcion = collection.Descripcion.Trim();
                ctx.UpdateDepa(id, collection);

                return(RedirectToAction("Index", "Departamentos", new { sucursal = sucursal }));
            }
            catch
            {
                return(View());
            }
        }