Esempio n. 1
0
        public bool DeleteBorrowed(int iD)
        {
            IDictionary <string, object> conditions = new Dictionary <string, object>();

            conditions["BID"] = iD;
            return(CrudFunctions.Delete(borrow, conditions) > 0);
        }
Esempio n. 2
0
        public bool DeleteReserved(int iD)
        {
            IDictionary <string, object> conditions = new Dictionary <string, object>();

            conditions["RID"] = iD;
            return(CrudFunctions.Delete(reserved, conditions) > 0);
        }
Esempio n. 3
0
        public bool DeleteGenre(int iD)
        {
            IDictionary <string, object> conditions = new Dictionary <string, object>();

            conditions["GID"] = iD;
            return(CrudFunctions.Delete(genre, conditions) > 0);
        }
Esempio n. 4
0
        public bool DeleteLanguage(int iD)
        {
            IDictionary <string, object> conditions = new Dictionary <string, object>();

            conditions["LID"] = iD;
            return(CrudFunctions.Delete(language, conditions) > 0);
        }
Esempio n. 5
0
        public bool DeleteDirector(int iD)
        {
            IDictionary <string, object> conditions = new Dictionary <string, object>();

            conditions["DID"] = iD;
            return(CrudFunctions.Delete(director, conditions) > 0);
        }
Esempio n. 6
0
        public bool DeleteRecord(MediaDTO record)
        {
            IDictionary <string, object> conditions = new Dictionary <string, object>();

            conditions["MediaID"] = record.MediaID;

            return(CrudFunctions.Delete(table, conditions) > 0);
        }
        public bool DeleteUser(string username, string password)
        {
            IDictionary <string, object> Parameters = new Dictionary <string, object>();

            Parameters["Password"] = username;
            Parameters["UserName"] = password;

            return(CrudFunctions.Delete(table, Parameters) > 0);
        }