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; } }
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; } }
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; } }
public bool Add(Status status) { try { _context.FinanceStatuses.Add(status); _context.SaveChanges(); return(true); } catch (Exception ex) { throw; } }