Exemple #1
0
        public bool Add(Category category)
        {
            try
            {
                _context.FinanceCategories.Add(category);
                _context.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public bool Add(Payment payment)
        {
            try
            {
                _context.FinancePayments.Add(payment);
                _context.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Exemple #3
0
        public bool Add(Type type)
        {
            try
            {
                _context.FinanceTypes.Add(type);
                _context.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public bool Add(Template paymentTemplate)
        {
            try
            {
                _context.FinanceTemplates.Add(paymentTemplate);
                _context.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Exemple #5
0
        public bool Add(Wallet wallet)
        {
            try
            {
                _context.FinanceWallets.Add(wallet);
                _context.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        public bool Add(Repeating repeating)
        {
            try
            {
                _context.FinanceRepeatings.Add(repeating);
                _context.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Exemple #7
0
        public bool Add(Status status)
        {
            try
            {
                _context.FinanceStatuses.Add(status);
                _context.SaveChanges();

                return(true);
            }
            catch (Exception ex)
            {
                throw;
            }
        }