//public ActionResult chosenCompany() //{ // return View(); //} public ActionResult chosenCompany(string companyName) { ct2GeoLocationDataController gldc = new ct2GeoLocationDataController("DefaultConnection"); List <companyModel> compmod2 = gldc.GetListCompanies(companyName); return(View(compmod2)); }
public ActionResult companyChoice(string userinput) { ct2GeoLocationDataController gldc = new ct2GeoLocationDataController("DefaultConnection"); List <companyModel> compmod = gldc.GetListCompanies(userinput); //add a method from gldc to search for the zipcode the user entered, need to make data controller to handle these actions as well as stored proc //insert below the dazta that needs to be submitted return(View(compmod)); }