internal async void ExcluirProdutoListaCompraAsync(ProdutoListaCompra produtoListaCompra) { produtoListaCompra.Delete = true; await produtoListaCompraRepository.UpdateEntityAsync(produtoListaCompra); //notify ser and delete on server await produtoListaCompraRepository.SyncDataBaseAsync(); await produtoListaCompraRepository.DeleteEntityAsync(produtoListaCompra); await produtoListaCompraRepository.SyncDataBaseAsync(); }
internal async Task AdicionarProdutoAListaAsync(ListaCompra editList, ProdutoListaCompra produtoListaCompra) { produtoListaCompra.IdListaCompra = editList.Id; await produtoListaCompraRepository.CreateEntityAsync(produtoListaCompra); }