i'm new on development , want make small change adding orderby existing code. can enlighten me on how orderby piece of code?
public list<employee> getallemployees() { ebll employeebll = new employeebll(); return ebll.getallemployees(); }
i agree answer t.s. gave, modify return iqueryable instead of returning .tolist() if want leave option further filter list in calling method. example getallemployees().where(e=>e.name="brad") otherwise enumerating list , not taking advantage of using underlying data source heavy lifting of filtering therefore returning more data needed.
Comments
Post a Comment