Пример #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);
        }