Exemplo n.º 1
0
        private async void SetDefault(object id)
        {
            int DestinationsID = int.Parse(id.ToString());

            Response response = Task.FromResult <Response>(await DestinationRepository.PostDefaultDestination(DestinationsID)).Result;

            if (response.Success == true)
            {
                Messenger.Default.Send <Dialog>(new Dialog()
                {
                    Message   = "Nieuwe standaard loctie ingesteld",
                    Ok        = "Ok",
                    Nok       = null,
                    ViewOk    = null,
                    ViewNok   = null,
                    ParamView = false,
                    Cb        = null
                });
                Loaded();
            }
            else
            {
                //error
            }
        }