public async Task <IActionResult> PutEmployeeScheduleSetting(int id, EmployeeScheduleSetting employeeScheduleSetting)
        {
            if (id != employeeScheduleSetting.EmployeeScheduleSettingId)
            {
                return(BadRequest());
            }

            _context.Entry(employeeScheduleSetting).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!EmployeeScheduleSettingExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <EmployeeScheduleSetting> > PostEmployeeScheduleSetting(EmployeeScheduleSetting employeeScheduleSetting)
        {
            _context.EmployeeScheduleSettings.Add(employeeScheduleSetting);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetEmployeeScheduleSetting", new { id = employeeScheduleSetting.EmployeeScheduleSettingId }, employeeScheduleSetting));
        }