public static List <string> AutocompleteFarms(string farmName) { var farmManager = new FarmManager(ConfigurationManager.ConnectionStrings["AdditionalInformation"].ConnectionString); return(farmManager.GetFarmsForAutocomplete(farmName)); }