Example #1
0
        public int Guardar(int IdPago, int IdUser)
        {
            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.spPupAutoDGeneral(IdPago, IdUser, VV, VM);
                    if (VV.Value.ToString() == "0")
                    {
                        val = 1;
                    }
                }
            }
            catch (Exception ex)
            {
            }
            return(val);
        }