public async Task InsertDayAsync(Day day) { //Correct for starting the week on Monday scheduleContext.Day.Add(day); await scheduleContext.SaveChangesAsync(); }
public async Task <Employee> InsertEmployeeAsync(Employee employee) { _context.Employees.Add(employee); await _context.SaveChangesAsync(); return(employee); }