public OfficeUpdateDto GetOfficeToUpdate(Guid id) { OfficeUpdateDto dto = _enterpriseRepo.GetOffice(id).ToUpdateDto(); if (dto == null) { throw new Exception(); } return(dto); }