public ActionResult Create(FCCxCIdentificacionTipo obj)
 {
     if (ModelState.IsValid)
     {
         var res = NEGOCIO_IdentificacionTipo.NEGOCIO_insertar(obj);
         return(RedirectToAction("Index"));
     }
     return(View(obj));
 }
        public ActionResult Edit([Bind(Include = "Id_TipoIdentif,Dsc_TipoIdentif")] FCCxCIdentificacionTipo obj)
        {
            var res = NEGOCIO_IdentificacionTipo.NEGOCIO_update(obj);

            if (ModelState.IsValid)
            {
                return(RedirectToAction("Index"));
            }
            return(View(obj));
        }
예제 #3
0
 public static bool NEGOCIO_delete(FCCxCIdentificacionTipo obj)
 {
     try
     {
         var resultado = new DATOS_IdentificacionTipo().DATOS_delete(obj.Id_TipoIdentif);
         return(resultado);
     }
     catch (Exception ex)
     {
         var msgError = ex.Message;
         return(false);
     }
 }