コード例 #1
0
        public IList <ProcedureDto> GetItems(string search)
        {
            var query = _procedureRepository.GetAllQueryable();

            if (!string.IsNullOrEmpty(search))
            {
                query = query.Where(g => g.Name.ToUpper().Contains(search.ToUpper()));
            }

            return(query.Include(a => a.ProcedureCategory)
                   .ToList()
                   .Select(s => s.MapToDto())
                   .ToList());
        }