Exemplo n.º 1
0
        public int Guardar(Pagos item)
        {
            ObjectParameter VV  = new ObjectParameter("VValor_Mensaje", typeof(Int32));
            ObjectParameter VM  = new ObjectParameter("VMensaje", typeof(String));
            int             val = 0;

            try
            {
                using (ClusmextContext context = new ClusmextContext()) {
                    val = context.spPupAutorizacionesPago2(item.Id_Pago, 10, string.Empty, item.Creado_por, true, VV, VM);
                    if (VV.Value.ToString() == "0")
                    {
                        val = 1;
                    }
                }
            }
            catch (Exception ex) {
            }
            return(val);
        }