Ejemplo n.º 1
0
        private async void AddOperation(Operation operation)
        {
            OperationRepository opRep = new OperationRepository(null);
            await opRep.AddItemAsync(operation, 1);

            await opRep.AddItemAsync(operation, 2);
        }
Ejemplo n.º 2
0
        public async Task SaveAsync()
        {
            Operation.Images = Operation.PathsToString(Destinations);

            if (adding == true)
            {
                Operation.Id = (int)await opRepository.AddItemAsync(Operation);
            }
            else
            {
                await opRepository.UpdateItemAsync(Operation);
            }
        }