public void InitializeRequest() { string urlCrearUsuario = EndPoint.URL_SERVIDOR + EndPoint.CREAR_USER; CreateUser = new ChooseRequest <User>(); CreateUser.ElegirEstrategia("POST", urlCrearUsuario); }
public void InitializeRequest() { string urlCrearPlato = EndPoint.URL_SERVIDOR + EndPoint.CREAR_PLATO; string urlPlatos = EndPoint.URL_SERVIDOR + EndPoint.CONSULTAR_ALL_PLATES; string urlBuscarPlato = EndPoint.URL_SERVIDOR + EndPoint.CONSULTAR_PLATE; GetPlate = new ChooseRequest <BaseModel>(); GetPlate.ElegirEstrategia("GET", urlBuscarPlato); GetPlatos = new ChooseRequest <BaseModel>(); GetPlatos.ElegirEstrategia("GET", urlPlatos); CreatePlate = new ChooseRequest <PlatoModel>(); CreatePlate.ElegirEstrategia("POST", urlCrearPlato); }