Пример #1
0
        public async void AgregarAgenda()
        {
            var Agenda = new Agenda
            {
                FechaVista = Fecha,
                FechaFin   = Fecha,
                idCliente  = clienteSelectItem.IdCliente,
                IdVendedor = Settings.userId,
                Notas      = Nota,
                Prioridad  = prioridadSelectItem.id,
            };
            var a = await apiService.AgregarAgenda(Agenda);

            if (a.IsSuccess)
            {
                MessagingCenter.Send <App>((App)Application.Current, "OnDateCreated");
                await dialogService.ShowMessage("Agenda", "Se agendo correctamente");

                await PopupNavigation.PopAllAsync();
            }
        }