Exemple #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 delete = mvcControllerActionClassRepository.GetList(e => idList.Contains(e.Id)).ToList();
             if (delete != null && delete.Count > 0)
             {
                 res = Delete(delete, operUser);
             }
         }
         return res;
 }
Exemple #2
0
        public bool Delete(List <int> actionIdList)
        {
            var data = mvcControllerActionClassRepository.GetList(e => actionIdList.Contains(e.Id));

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

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