save the objects of cars or Hotels in core data instead of writing them inside code
so we can get the data from the core and save data into it
here is the structure of the object
{"Type" : "economic car",
"Image" : "cheverolet.jpg",
"Title" : "cheverolet spark",
"Cost" : "38",
"Cost_all" :"200"};
cost_all : current cost * number of days reserved for rental
save the objects of cars or Hotels in core data instead of writing them inside code so we can get the data from the core and save data into it
here is the structure of the object {"Type" : "economic car", "Image" : "cheverolet.jpg", "Title" : "cheverolet spark", "Cost" : "38", "Cost_all" :"200"};
cost_all : current cost * number of days reserved for rental