public ActionResult HotelUpdate(string id)//this action method is used to extract the data from hoteldetail table { tblHotelDetail t = Dbclass.gethotels(id); return(View(t)); }