Exemple #1
0
        public async Task <Employee> AddEmployee(Employee employee)
        {
            await _context.Employees.AddAsync(employee);

            await _context.SaveChangesAsync();

            return(employee);
        }
Exemple #2
0
        public async Task <Project> AddProject(Project project)
        {
            await _context.Projects.AddAsync(project);

            await _context.SaveChangesAsync();

            return(project);
        }