Ejemplo n.º 1
0
        public async void SaveAsync()
        {
            Action.ResponsibleCollection = new ObservableCollection <ListEntity>(ResponsibleCollection.Where(x => x.Added == true));
            await actionRepository.AddOrUpdateAsync(Action, Action.Id);

            await NavigationService.GoBackAsync();
        }
Ejemplo n.º 2
0
        public async void SaveActionAsync()
        {
            IsBusy = true;
            if (String.IsNullOrEmpty(Action.GuidAction))
            {
                Action.GuidAction = Guid.NewGuid().ToString();
            }

            Action.IdLine = Line.Id;
            await actionRepository.AddOrUpdateAsync(Action, Action.Id);

            Action = await actionRepository.GetByGuidAsync(Action.GuidAction);

            IsBusy = false;
        }