public void OnGet(string searchname, int searchage, int searcharea, Core.Kind searchtype, int searchper) { message = config["message"]; //Whiskeys = whiskeyData.Getall(); Whiskeys = whiskeyData.GetAllByFind(searchname, searchage, searcharea, searchtype, searchper); Locations = whiskeyData.GetLocations(); if (searchage == 0) { agevalue = ""; } else { agevalue = searchage.ToString(); } if (searchper == 0) { pervalue = ""; } else { pervalue = searchper.ToString(); } }