public async Task ApproveHire(Guid id)
        {
            Hire hire = _hireStore.GetById(id);

            hire.Status = HireStatus.Approved;

            if (hire.TeamId.HasValue)
            {
                hire.Team.Members.ForEach(e => e.Inactive = true);
                await _teamStore.Update(hire.Team);
            }
            else
            {
                hire.Employee.Inactive = true;
                await _employeeStore.Update(hire.Employee);
            }

            await _hireStore.Update(hire);
        }
 public async Task Update(TeamDTO teamDto)
 {
     Team team = _mapper.Map <Team>(teamDto);
     await _store.Update(team);
 }