예제 #1
0
        public async Task InsertDayAsync(Day day)
        {
            //Correct for starting the week on Monday
            scheduleContext.Day.Add(day);

            await scheduleContext.SaveChangesAsync();
        }
예제 #2
0
        public async Task <Employee> InsertEmployeeAsync(Employee employee)
        {
            _context.Employees.Add(employee);
            await _context.SaveChangesAsync();

            return(employee);
        }