Exemple #1
0
        public int GuardarCS(int IdPago, int IdCS1, int IdCS2)
        {
            int             val = 0;
            ObjectParameter VV  = new ObjectParameter("VValor_Mensaje", typeof(Int32));
            ObjectParameter VM  = new ObjectParameter("VMensaje", typeof(String));

            try
            {
                using (ClusmextContext context = new ClusmextContext()) {
                    context.spPupNurcCs(IdPago, IdCS1, IdCS2, 0, 0, 0, VV, VM);
                    if (VV.Value.ToString() == "0")
                    {
                        val = 1;
                    }
                }
            }
            catch (Exception ex) {
            }
            return(val);
        }