Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 524k

Linq Query

May 1 2022 6:20 AM

Hi

  I want if user has selected any value in Listbox then it should filter , else all values of ListBox

public List<Header> GetOpen(Int32 ddl0)
        {
            List<Header> Result = (from t in context.Headers
                                            where t.IsActive == true 

                                            select t).ToList();
            return Result;
        }

Thanks


Answers (1)