public OfficeLocation Update(OfficeLocation changedOfficeLocation)
        {
            var offices = GetAll();

            if (offices.All(x => x.OfficeId != changedOfficeLocation.OfficeId))
            {
                var id = _officeLocationRepository.Insert(changedOfficeLocation);

                changedOfficeLocation.OfficeId = id;
                SendInsertEmail(changedOfficeLocation);
            }
            else
            {
                var originalOfficeLocation = GetById(changedOfficeLocation.OfficeId);
                _officeLocationRepository.Update(changedOfficeLocation);

                if (originalOfficeLocation != changedOfficeLocation)
                {
                    SendUpdateEmail(changedOfficeLocation, originalOfficeLocation);
                }
            }
            return(changedOfficeLocation);
        }