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

            if (idList != null && idList.Count > 0)
            {
                var delete = sightVouchItemRepository.GetList(e => idList.Contains(e.ItemID)).ToList();
                if (delete != null && delete.Count > 0)
                {
                    res = DeleteTrue(delete, operUser);
                }
            }
            return(res);
        }
예제 #2
0
        /// <summary>
        /// Gets the sight vouch item.
        /// </summary>
        /// <param name="sid">The sid.</param>
        /// <returns></returns>
        public IQueryable <iPow.Domain.Dto.Sys_SightVouchItemDto> GetSightVouchItem(int sid)
        {
            var res = sightVouchItemRepository.GetList(d => d.SightID == sid && d.IsDelete == 0).AsQueryable();

            return(res.ToDto().AsQueryable());
        }