i have written a stored procedure which returns me Customer Name in below format
LastName+", "+FirstName
i have assign it to Class of properties like below.
Customer = DbContext.ExecuteStoreQuery<SearchEmployeeCDTO>("exec GetCustomerDetails").AsQueryable().ToList();
now i want to search the lastName like below i have done for Customer companyName
if(CompanyName!=null && LastName==null)
Customer = Customer.Where(c => c.CompName.Contains(CompanyName)).ToList();
please suggest how i can search for the LastName from combination of lastName and FirstName format
thanks,
Maybe this?