Example #1
0
        public bool Delete(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (idList != null && idList.Count > 0)
            {
                var data = adminUserClassRepository.GetList(e => idList.Contains(e.Id));
                try
                {
                    foreach (var item in data)
                    {
                        if (item != null)
                        {
                            item.State = false;
                            adminUserClassRepository.Modify(item);
                        }
                    }
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
Example #2
0
        public bool Delete(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (idList != null && idList.Count > 0)
            {
                var delete = adminUserClassRepository.GetList(e => idList.Contains(e.Id)).ToList();
                if (delete != null && delete.Count > 0)
                {
                    res = Delete(delete, operUser);
                }
            }
            return(res);
        }
Example #3
0
        public bool NameHasClass(string name)
        {
            var res = adminUserClassRepository.GetList(e => e.Name == name).Any();

            return(res);
        }