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); }
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); }