public class ContactSearch {
public static List<Contact> searchForContacts(String lstname, String mpcode){
List<Contact> ctc = new List<Contact>();
ctc = [SELECT FirstName FROM Contact WHERE LastName=:lstname AND MailingPostalCode=:mpcode];
return ctc;
}
}
What is the exact error message in English.
Regards,
Mahesh
I know its pritty same but just a try.
You can go to Developer Console and run it.
Regards,
Mahesh
Line: 2, Column: 33
Only top-level class methods can be declared static
of Developer Console
In dev console click File - New Apex Class and write there your code.
Also follow the below post:
https://developer.salesforce.com/forums/?id=906F0000000B2cNIAS
Regards,
Mahesh
I didn't understand your question. Could you please explain a bit more.
Regards,
Mahesh