Exemplo n.º 1
0
        public ActionResult NuevoRegistro(Empresa collection)
        {
            try
            {
                if (collection.RegistroPatronal == null)
                {
                    collection.Clase = null;
                    registro.CreateRegistroPatronal(collection);
                }
                else
                {
                    registro.CreateRegistroPatronal(collection);
                }


                return(RedirectToAction("Index", "RegistrosPatronales"));
            }
            catch
            {
                return(View());
            }
        }