Hi guys, I have a little problem for which I need a little advice about.
I have a repository function called getList which retrieves certain information that gets posted to it from a form. My form has 6 fields, and a user can enter searvh criteria in any or all the fields. According to what he has entered, I must execute a SQL string to retrieve matching information.
I have the following:
public List<Client> getList(string clientSurname, string clientInitials, string clientName, string clientNumber, string clientReference, int divisionID, int clientStatus, int usrID)
var clientlist = from c in DB.Clients
&& c.DivisionID == divisionID
&& c.Status == clientStatus
View Complete Post