예제 #1
0
 public bool DATOS_insertar(FCCxCEstadoPago obj)
 {
     try
     {
         var resultado = bd.pr_FCCxCEstadoPago_Insertar(obj.DscEstadoPago, new ObjectParameter("iIdEstadoPago", "0"), new ObjectParameter("iCodError", "0"));
         if (resultado == 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         var msgError = ex.Message;
         return(false);
     }
 }
예제 #2
0
 public bool DATOS_update(FCCxCEstadoPago obj)
 {
     try
     {
         var resultado = bd.pr_FCCxCEstadoPago_Actualizar((int)obj.IdEstadoPago, obj.DscEstadoPago, new ObjectParameter("iCodError", "0"));
         if (resultado == 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (Exception ex)
     {
         var msgError = ex.Message;
         return(false);
     }
 }
예제 #3
0
        public List <FCCxCEstadoPago> DATOS_SelectAll()
        {
            try
            {
                var resTemp1 = bd.pr_FCCxCEstadoPago_SeleccionarTodos(new ObjectParameter("iCodError", "0")).ToList();
                List <FCCxCEstadoPago> res = new List <FCCxCEstadoPago>();
                foreach (var r in resTemp1)
                {
                    FCCxCEstadoPago n = new FCCxCEstadoPago()
                    {
                    };
                    res.Add(n);
                }
                return(res);
            }

            catch (Exception ex)
            {
                var msgError = ex.Message;
            }
            return(null);
        }