I have an MVC application that I am almost ending. But I have a situation that cannot understand the syntax.
What I want to do is sort by two columns. When I use the syntax below, it is sorted by one column, then the next.
public IQueryable<vw_FormIndex> FindAllFormsVw(int companyIdParam)
{
return _db.vw_FormIndexes.Where(d => d.companyID == companyIdParam).OrderBy(d => d.formSortOrder).OrderBy(d => d.formCustNumber);
}
Suggestions Please
source
share