Ejemplo n.º 1
0
 public static IQueryable <SchoolTypeEntity> FilterAndOrder(
     this IQueryable <SchoolTypeEntity> list,
     GetList.Command request)
 {
     if (!string.IsNullOrWhiteSpace(request.Name))
     {
         list = list.Where(
             x => x.Name.ToUpper()
             .Contains(request.Name.ToUpper()));
     }
     return(list);
 }
Ejemplo n.º 2
0
        public static IQueryable <LiteratureEntity> FilterAndOrder(
            this IQueryable <LiteratureEntity> list,
            GetList.Command request)
        {
            if (request.Name is not null)
            {
                list = list.Where(
                    x => x.Name.ToUpper()
                    .Contains(request.Name.ToUpper()));
            }

            return(list);
        }