Ejemplo n.º 1
0
        public bool DeleteTrue(IList <int> idList, Data.DataSys.Sys_AdminUser operUser)
        {
            var res    = false;
            var delete = userRoleRepository.GetList(e => idList.Contains(e.Id)).ToList();

            if (delete != null && delete.Count > 0)
            {
                res = DeleteTrue(delete, operUser);
            }
            return(res);
        }
Ejemplo n.º 2
0
        public bool Delete(List <int> userRoleIdList)
        {
            var data = userRoleRepository.GetList(e => userRoleIdList.Contains(e.Id));

            foreach (var item in data)
            {
                userRoleRepository.Delete(item);
            }
            var res = false;

            try
            {
                userRoleRepository.Uow.Commit();
                res = true;
            }
            catch (Exception ex)
            {
            }
            return(res);
        }