Exemplo n.º 1
0
        public async Task AddReceiptPhotoAsync(ReceiptPhoto photo)
        {
            await _context.ReceiptPhotos.AddAsync(photo);

            await _context.SaveChangesAsync();
        }
Exemplo n.º 2
0
        public async Task AddReceiptAsync(Receipt receipt)
        {
            await _context.Receipts.AddAsync(receipt);

            await _context.SaveChangesAsync();
        }
Exemplo n.º 3
0
        public async Task AddCategoryAsync(Category category)
        {
            await _context.Categories.AddAsync(category);

            await _context.SaveChangesAsync();
        }
Exemplo n.º 4
0
        public async Task AddCurrencyAsync(Currency currency)
        {
            await _context.Currencies.AddAsync(currency);

            await _context.SaveChangesAsync();
        }
        public async Task AddPaymentMethodAsync(PaymentMethod paymentMethod)
        {
            await _context.PaymentMethods.AddAsync(paymentMethod);

            await _context.SaveChangesAsync();
        }