コード例 #1
0
 public int Elimina_C_ROL_FUNCION(SPE_OBTIENE_C_ROL_FUNCION_Result V_C_ROL_FUNCION, string usuario = null, string programa = null)
 {
     using (context = new SistemaSigeinEntities())
     {
         //Declaramos el objeto de valor de retorno
         ObjectParameter pout_clave_retorno = new ObjectParameter("POUT_CLAVE_RETORNO", typeof(int));
         context.SPE_ELIMINA_C_ROL_FUNCION(pout_clave_retorno, V_C_ROL_FUNCION.ID_ROL, V_C_ROL_FUNCION.ID_FUNCION, usuario, programa);
         //regresamos el valor de retorno de sql
         return(Convert.ToInt32(pout_clave_retorno.Value));
     }
 }
コード例 #2
0
 public int InsertaActualiza_C_ROL_FUNCION(string tipo_transaccion, SPE_OBTIENE_C_ROL_FUNCION_Result V_C_ROL_FUNCION, string usuario, string programa)
 {
     using (context = new SistemaSigeinEntities())
     {
         //Declaramos el objeto de valor de retorno
         ObjectParameter pout_clave_retorno = new ObjectParameter("POUT_CLAVE_RETORNO", typeof(int));
         context.SPE_INSERTA_ACTUALIZA_C_ROL_FUNCION(pout_clave_retorno, V_C_ROL_FUNCION.ID_ROL, V_C_ROL_FUNCION.ID_FUNCION, tipo_transaccion, usuario, programa);
         //regresamos el valor de retorno de sql
         return(Convert.ToInt32(pout_clave_retorno.Value));;
     }
 }