Exemplo n.º 1
0
        public Employee Add(Employee employee)
        {
            Employee newEmployee = _context.Employees.Add(employee);

            _context.SaveChanges();
            return(newEmployee);
        }
Exemplo n.º 2
0
        public Spending Add(Spending spending)
        {
            Spending newSpending = _context.Spendings.Add(spending);

            _context.SaveChanges();
            return(newSpending);
        }