예제 #1
0
        public ActionResult NuevoRegistro(Departamento collection, int sucursal)
        {
            try
            {
                collection.Descripcion = collection.Descripcion.Trim();
                ctx.CrearDepartamento(collection);


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