コード例 #1
0
        public async Task <Goal> AddGoal(Goal goal)
        {
            _context.Goals.Add(goal);
            await _context.SaveChangesAsync();

            return(goal);
        }
        public async Task <Department> AddDepartment(Department department)
        {
            _context.Departments.Add(department);
            await _context.SaveChangesAsync();

            return(department);
        }
コード例 #3
0
        public async Task <EmployeeRole> AddRole(EmployeeRole role)
        {
            _context.Roles.Add(role);
            await _context.SaveChangesAsync();

            return(role);
        }
        public async Task <Iteration> CreateNewIteration(Iteration iteration)
        {
            _context.Iteration.Add(iteration);
            await _context.SaveChangesAsync();

            return(iteration);
        }
        public async Task <EmployeeIterationGoals> AddEmployeeIterationGoal(EmployeeIterationGoals employeeIterationGoal)
        {
            _context.EmployeeIterationGoals.Add(employeeIterationGoal);
            await _context.SaveChangesAsync();

            return(employeeIterationGoal);
        }
コード例 #6
0
 public async Task AddNewReportingManagerRequest(ReportingManagerRequest reportingManagerRequest)
 {
     _context.ReportingManagerRequests.Add(reportingManagerRequest);
     await _context.SaveChangesAsync();
 }