Пример #1
0
        public bool AddOnlyUserID(string userId)
        {
            Func <SqlConnection, bool> action = (connection) => BlackListConfigDAL.AddOnlyUserID(connection, userId);

            return(dbManager.Execute(action));
        }
Пример #2
0
        public bool Delete(int id)
        {
            Func <SqlConnection, bool> action = (connection) => BlackListConfigDAL.Delete(connection, id);

            return(dbManager.Execute(action));
        }
Пример #3
0
        public IEnumerable <BlackListConfigModel> GetList(string userId)
        {
            Func <SqlConnection, IEnumerable <BlackListConfigModel> > action = (connection) => BlackListConfigDAL.GetList(connection, userId);

            return(dbManager.Execute(action));
        }