示例#1
0
    public static List <string> AutocompleteFarms(string farmName)
    {
        var farmManager =
            new FarmManager(ConfigurationManager.ConnectionStrings["AdditionalInformation"].ConnectionString);

        return(farmManager.GetFarmsForAutocomplete(farmName));
    }