private async void AddOperation(Operation operation) { OperationRepository opRep = new OperationRepository(null); await opRep.AddItemAsync(operation, 1); await opRep.AddItemAsync(operation, 2); }
public async Task SaveAsync() { Operation.Images = Operation.PathsToString(Destinations); if (adding == true) { Operation.Id = (int)await opRepository.AddItemAsync(Operation); } else { await opRepository.UpdateItemAsync(Operation); } }