Exemple #1
0
        public async Task SelecccionarPlatoAComprar()
        {
            try
            {
                ParametersRequest parametros = new ParametersRequest();
                var idPlato = "1";
                parametros.Parameters.Add(idPlato /*BusquedaCategoria.Value*/);
                APIResponse response = await GetPlate.EjecutarEstrategia(null, parametros);

                if (response.IsSuccess)
                {
                    Plato             = JsonConvert.DeserializeObject <PlatoModel>(response.Response);
                    NombrePlato.Value = Plato.Nombre;
                    //((Command)CrearCategoriaCommand).ChangeCanExecute();
                    //((Command)EliminarCategoriaCommand).ChangeCanExecute();
                }
                else
                {
                    ((MessageViewModel)PopUp.BindingContext).Message = "No se encuentra ese Plato";
                    await PopupNavigation.Instance.PushAsync(PopUp);
                }
            }
            catch (Exception e)
            {
            }
        }
        protected void Add_Click(object sender, EventArgs e)
        {
            GetPlate addPlate = new GetPlate();

            Response.Redirect("../Views/_AdminMainView.aspx");
        }