public int Insert(String id_trest, String rest_address, String rest_desc, String rest_map, String rest_name, String rest_pic) { Restaurante nuevo = new Restaurante { id_trest = id_trest, rest_address = rest_address, rest_desc = rest_desc, rest_map = rest_map, rest_name = rest_name, rest_pic = rest_pic }; return(rest.Insert(nuevo)); }
public int Update(String id_rest, String id_trest, String rest_address, String rest_desc, String rest_map, String rest_name, String rest_pic) { Restaurante edit = new Restaurante { id_rest = id_rest, id_trest = id_trest, rest_address = rest_address, rest_desc = rest_desc, rest_map = rest_map, rest_name = rest_name, rest_pic = rest_pic }; return(rest.Update(edit)); }