예제 #1
0
        public int AddSession(Session entity_Session)
        {
            int result          = 0;
            DataBaseFunction db = new DataBaseFunction();

            db.agregarParametro("@IdSession", SqlDbType.BigInt, ParameterDirection.Output);
            db.agregarParametro("@IdUsuario", SqlDbType.BigInt, entity_Session.IdUsuario);
            db.agregarParametro("@Token", SqlDbType.VarChar, entity_Session.Token);
            db.consultaOutput("Softv_SessionAdd");
            result = int.Parse(db.diccionarioOutput["@IdSession"].ToString());
            return(result);
        }