예제 #1
0
        public ActionResult Edit(int id, Infraestructura.InfraestructuraCompania compania)
        {
            try
            {
                servicioc.ModificarCompania(id, compania);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
예제 #2
0
        public ActionResult Create(Infraestructura.InfraestructuraCompania compania)
        {
            try

            {
                servicioc.RegistrarCompania(compania);

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