public string[] GetCompletionList(string prefixText, int count, string contextKey) { //fiddler //http://localhost/ETEM/Services/Common/Common.svc/GetCompletionList //User-Agent: Fiddler //Host: localhost //Content-Length: 92 //Content-Type: application/json;charset=UTF-8 //{ // "prefixText":"геор", // "count":"10", // "contextKey":"case=StudentAndCandidateByName" //} if (count == 0) { count = 10; } List<string> items = new List<string>(); items = new CommonBL().GetCompletionList(prefixText, count, contextKey); return items.ToArray<string>(); }
public string[] TestCompletionList(string prefixText, int count, string contextKey) //string prefixText, int count, string contextKey { if (count == 0) { count = 10; } List<string> items = new List<string>(); items = new CommonBL().GetCompletionList(prefixText, count, contextKey); //return "test"; return items.ToArray<string>(); }