public async Task Update(TimeOff timeOff) { context.Update(timeOff); await context.SaveChangesAsync(); }
public async Task Create(TimeOff timeOff) { context.TimeOff.Add(timeOff); await context.SaveChangesAsync(); }