static public Restaurant WebRestaurantToData(WebRestaurant wr) { Restaurant r = new Restaurant() { ID_Restaurant = wr.RestaurantID, Name = wr.Name, City = wr.City, Address = wr.Address, Phone = wr.Phone, Zipcode = wr.Zipcode, Website = wr.Website, AveRating = wr.AveRating }; return(r); }
static public WebRestaurant RestaurantToWeb(Restaurant r) { WebRestaurant wr = new WebRestaurant() { RestaurantID = r.ID_Restaurant, Name = r.Name, City = r.City, Address = r.Address, Phone = r.Phone, Zipcode = r.Zipcode, Website = r.Website, AveRating = r.AveRating }; return(wr); }