public transportation transportation_insert() { transportation.location_from = Insert_location_from_txt.Text; transportation.location_to = Insert_location_to_txt.Text; transportation.no_of_passangers = Convert.ToInt32(Insert_no_of_passangers_txt.Text); transportation.pickup_date = Convert.ToDateTime(Insert_pickup_date_txt.Text); transportation.trans_type = Insert_trans_type_txt.Text; transportation.Vehicle_id = Convert.ToInt32(Insert_Vehicle_id_txt.Text); transportation = transportation.Insert(transportation); Insert_transportation_GridView.DataBind(); Update_transportation_GridView.DataBind(); Delete_transportation_GridView.DataBind(); return(transportation); }